mirror of
https://github.com/rclone/rclone.git
synced 2025-12-12 06:24:14 +01:00
Fix lint issues reported by staticcheck
Used staticcheck 2022.1.2 (v0.3.2) See: staticcheck.io
This commit is contained in:
@@ -99,7 +99,7 @@ func Parse(path string) (parsed Parsed, err error) {
|
||||
return parsed, errCantBeEmpty
|
||||
}
|
||||
// If path has no `:` in, it must be a local path
|
||||
if strings.IndexRune(path, ':') < 0 {
|
||||
if !strings.ContainsRune(path, ':') {
|
||||
return parsed, nil
|
||||
}
|
||||
// States for parser
|
||||
|
||||
Reference in New Issue
Block a user