Skip to content

Commit

Permalink
Fix string does not match ~[]E error
Browse files Browse the repository at this point in the history
  • Loading branch information
hslatman committed Aug 3, 2023
1 parent cd486c2 commit 827c35f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion caddyconfig/httpcaddyfile/httptype.go
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ func (st ServerType) Setup(
defaultLog.Exclude = append(defaultLog.Exclude, ncl.log.Include...)

// avoid duplicates by sorting + compacting
slices.Sort[string](defaultLog.Exclude)
sort.Strings(defaultLog.Exclude)
defaultLog.Exclude = slices.Compact[[]string, string](defaultLog.Exclude)
}
}
Expand Down

0 comments on commit 827c35f

Please sign in to comment.