Skip to content

Commit ea3ec22

Browse files
committed
chore: update linter
1 parent 8095310 commit ea3ec22

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
- master
1212

1313
env:
14-
GOLANGCI_LINT_VERSION: v1.64.7
14+
GOLANGCI_LINT_VERSION: v2.0.1
1515

1616
jobs:
1717
build:

mux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func (m *Mux) AddAlias(match, replace string) {
3838
func (m *Mux) applyAliases(expr string) (string, bool) {
3939
alias := expr
4040
for _, a := range m.aliases {
41-
alias = strings.Replace(alias, a.match, a.replace, -1)
41+
alias = strings.ReplaceAll(alias, a.match, a.replace)
4242
}
4343
return alias, alias != expr
4444
}

0 commit comments

Comments
 (0)