mirror of
https://github.com/restic/restic.git
synced 2026-11-10 00:38:40 +00:00
Fix linter warnings
This commit is contained in:
1 parent
575eac8d80
commit
60d80a6127
13 files changed
+24
-29
No files matched your search
@@ -34,6 +34,7 @@ func isPath(s string) bool {
|
||||
|
||||
// check for drive paths
|
||||
drive := s[0]
|
||||
//nolint:staticcheck // de morgan's law makes this harder to read
|
||||
if !(drive >= 'a' && drive <= 'z') && !(drive >= 'A' && drive <= 'Z') {
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user