[PR #5220] [MERGED] refactor: use maps.Clone and slices.Concat #5186

Closed
opened 2026-05-05 14:56:19 -06:00 by gitea-mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/fatedier/frp/pull/5220
Author: @alexandear
Created: 3/7/2026
Status: Merged
Merged: 3/8/2026
Merged by: @fatedier

Base: devHead: refactor/slices-maps


📝 Commits (1)

  • 28477e8 refactor: use maps.Clone and slices.Concat

📊 Changes

2 files changed (+6 additions, -11 deletions)

View changed files

📝 pkg/policy/featuregate/feature_gate.go (+4 -8)
📝 test/e2e/framework/process.go (+2 -3)

📄 Description

WHY

This PR refactors usages of maps.Copy to maps.Clone; combines a few appends into slices.Concat.

Follows #5215


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/fatedier/frp/pull/5220 **Author:** [@alexandear](https://github.com/alexandear) **Created:** 3/7/2026 **Status:** ✅ Merged **Merged:** 3/8/2026 **Merged by:** [@fatedier](https://github.com/fatedier) **Base:** `dev` ← **Head:** `refactor/slices-maps` --- ### 📝 Commits (1) - [`28477e8`](https://github.com/fatedier/frp/commit/28477e8d6f499ead0cf3fd2b6dbf3e0c7e580ad3) refactor: use maps.Clone and slices.Concat ### 📊 Changes **2 files changed** (+6 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `pkg/policy/featuregate/feature_gate.go` (+4 -8) 📝 `test/e2e/framework/process.go` (+2 -3) </details> ### 📄 Description ### WHY This PR refactors usages of `maps.Copy` to `maps.Clone`; combines a few appends into `slices.Concat`. Follows #5215 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror 2026-05-05 14:56:19 -06:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#5186
No description provided.