Skip to content

Commit 2eecf76

Browse files
committed
freeipmi: use strings.ReplaceAll
1 parent 798fb57 commit 2eecf76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

freeipmi/freeipmi.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ type SELEventData struct {
8686
// EscapePassword escapes a password so that the result is suitable for usage in a
8787
// FreeIPMI config file.
8888
func EscapePassword(password string) string {
89-
return strings.Replace(password, "#", "\\#", -1)
89+
return strings.ReplaceAll(password, "#", "\\#")
9090
}
9191

9292
func pipeName() (string, error) {

0 commit comments

Comments
 (0)