Add errguards throughout the code to enable golangci-lint
This commit is contained in:
16 files changed
+148
-54
No files matched your search
@@ -757,7 +757,11 @@ func (parser *arguments) parseCommandLine() (err error) {
|
||||
usedNext := false
|
||||
|
||||
if len(args) < 1 {
|
||||
parser.parseShortOption("-Syu", "")
|
||||
_, err = parser.parseShortOption("-Syu", "")
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
} else {
|
||||
for k, arg := range args {
|
||||
var nextArg string
|
||||
|
||||
Reference in new issue
Block a user