mirror of
https://github.com/restic/restic.git
synced 2025-12-12 06:51:51 +00:00
Fix linter warnings
This commit is contained in:
@@ -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