mirror of
https://github.com/containers/podman.git
synced 2025-12-02 02:58:03 +08:00
enable gofumpt formatter
Based on our discussion gofumpt won the vote so use that one via golangci-lint. https://github.com/containers/podman/discussions/27291 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
@@ -55,8 +55,8 @@ func isValidUnicode(c uint32) bool {
|
||||
/* This is based on code from systemd (src/basic/escape.c), marked LGPL-2.1-or-later and is copyrighted by the systemd developers */
|
||||
|
||||
func cUnescapeOne(p string, acceptNul bool) (int, rune, bool) {
|
||||
var count = 1
|
||||
var eightBit = false
|
||||
count := 1
|
||||
eightBit := false
|
||||
var ret rune
|
||||
|
||||
// Unescapes C style. Returns the unescaped character in ret.
|
||||
@@ -290,7 +290,7 @@ loop1:
|
||||
}
|
||||
|
||||
if flags&(SplitCUnescape|SplitUnescapeSeparators) != 0 {
|
||||
var r = -1
|
||||
r := -1
|
||||
var u rune
|
||||
|
||||
if flags&SplitCUnescape != 0 {
|
||||
|
||||
Reference in New Issue
Block a user