mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-02-15 14:03:06 +02:00
no more naked returns
This commit is contained in:
parent
cf74c2cf96
commit
f9979879a1
@ -13,6 +13,7 @@ linters:
|
||||
- unconvert
|
||||
- exhaustive
|
||||
- makezero
|
||||
- nakedret
|
||||
# - goconst # TODO: enable and fix issues
|
||||
fast: false
|
||||
|
||||
@ -20,5 +21,9 @@ linters-settings:
|
||||
exhaustive:
|
||||
default-signifies-exhaustive: true
|
||||
|
||||
nakedret:
|
||||
# the gods will judge me but I just don't like naked returns at all
|
||||
max-func-lines: 0
|
||||
|
||||
run:
|
||||
go: 1.18
|
||||
|
@ -72,7 +72,7 @@ func CopyFile(src, dst string) (err error) {
|
||||
return
|
||||
}
|
||||
|
||||
return
|
||||
return //nolint: nakedret
|
||||
}
|
||||
|
||||
// CopyDir recursively copies a directory tree, attempting to preserve permissions.
|
||||
@ -133,5 +133,5 @@ func CopyDir(src string, dst string) (err error) {
|
||||
}
|
||||
}
|
||||
|
||||
return
|
||||
return //nolint: nakedret
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user