diff options
| author | Jeroen Wijenbergh <jeroen.wijenbergh@geant.org> | 2025-05-06 12:40:47 +0200 |
|---|---|---|
| committer | Jeroen Wijenbergh <jeroen.wijenbergh@geant.org> | 2025-05-06 12:40:47 +0200 |
| commit | 347b20fc91505584bc9efbeca89590a411b95e79 (patch) | |
| tree | 9dfc600e957c4a881115f8bc8a9cc107a4f0cc9c /internal/wireguard/ini | |
| parent | 9c4985368aee638d982f30ea7bc5c7ee71ae3ab3 (diff) | |
All: Run modernize --test --fix
Diffstat (limited to 'internal/wireguard/ini')
| -rw-r--r-- | internal/wireguard/ini/ini.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/wireguard/ini/ini.go b/internal/wireguard/ini/ini.go index 83fc614..842928a 100644 --- a/internal/wireguard/ini/ini.go +++ b/internal/wireguard/ini/ini.go @@ -7,6 +7,7 @@ package ini import ( "errors" "fmt" + "slices" "strings" ) @@ -65,7 +66,7 @@ func (ok *OrderedKeys) Remove(name string) { if idx == -1 { return } - *ok = append((*ok)[:idx], (*ok)[idx+1:]...) + *ok = slices.Delete((*ok), idx, idx+1) } // Section represents a single section within an ini file |
