mirror of
https://github.com/containers/podman.git
synced 2025-10-12 08:45:37 +08:00
Fix QF1012 staticcheck warnings
> QF1012: Use fmt.Fprintf(...) instead of WriteString Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
@ -483,7 +483,7 @@ func escapeString(escaped *strings.Builder, word string, isPath bool) {
|
||||
escaped.WriteString("-")
|
||||
}
|
||||
default:
|
||||
escaped.WriteString(fmt.Sprintf("\\x%.2x", c))
|
||||
fmt.Fprintf(escaped, "\\x%.2x", c)
|
||||
}
|
||||
} else {
|
||||
escaped.WriteRune(c)
|
||||
|
Reference in New Issue
Block a user