1
0
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:
Jesse Duffield 2022-03-25 23:16:24 +11:00
parent cf74c2cf96
commit f9979879a1
2 changed files with 7 additions and 2 deletions

View File

@ -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

View File

@ -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
}