Skip to content

Commit f26f221

Browse files
committed
fix lint
1 parent 7238cc7 commit f26f221

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

pkg/importer/importer.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"fmt"
77
"log/slog"
88
"sort"
9+
"strings"
910

1011
"github.com/xinnjie/onekeymap-cli/internal/dedup"
1112
"github.com/xinnjie/onekeymap-cli/pkg/api/importerapi" // Only for ValidationReport
@@ -265,9 +266,11 @@ func pairKey(action keymap.Action) string {
265266
}
266267
// Join with NUL to avoid ambiguity
267268
sig := action.Name + "\x00"
269+
var sigSb268 strings.Builder
268270
for _, p := range parts {
269-
sig += p + "\x00"
271+
sigSb268.WriteString(p + "\x00")
270272
}
273+
sig += sigSb268.String()
271274
return sig
272275
}
273276

0 commit comments

Comments
 (0)