Merge pull request #3683 from MichaelEischer/fix-golangci-lint-warnings

Fix golangci lint warnings
This commit is contained in:
Alexander Neumann
2022-03-29 11:45:10 +02:00
committed by GitHub
56 changed files with 72 additions and 24 deletions

View File

@@ -1,3 +1,4 @@
//go:build !windows
// +build !windows
package restic

View File

@@ -1,3 +1,4 @@
//go:build !freebsd && !windows
// +build !freebsd,!windows
package restic

View File

@@ -166,7 +166,7 @@ func (node *Node) CreateAt(ctx context.Context, path string, repo Repository) er
case "socket":
return nil
default:
return errors.Errorf("filetype %q not implemented!\n", node.Type)
return errors.Errorf("filetype %q not implemented", node.Type)
}
return nil

View File

@@ -1,3 +1,4 @@
//go:build aix
// +build aix
package restic

View File

@@ -1,3 +1,4 @@
//go:build freebsd
// +build freebsd
package restic

View File

@@ -1,3 +1,4 @@
//go:build !windows
// +build !windows
package restic

View File

@@ -1,3 +1,4 @@
//go:build !windows
// +build !windows
package restic