Add errguards throughout the code to enable golangci-lint

This commit is contained in:
Jguer committed 2019-10-13 20:56:27 +01:00
1 parent 422a5931af
commit a591b33262
16 files changed
+148 -54

No files matched your search

+5 -1
View File
@@ -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