mirror of
https://github.com/go-task/task.git
synced 2026-06-26 06:06:07 +00:00
chore(golangci-lint): improve and clean configuration (#2808)
This commit is contained in:
committed by
GitHub
parent
be35b3af75
commit
ecffcc720f
@@ -93,8 +93,8 @@ func getScheme(uri string) (string, error) {
|
||||
return "git", nil
|
||||
}
|
||||
|
||||
if i := strings.Index(uri, "://"); i != -1 {
|
||||
return uri[:i], nil
|
||||
if before, _, ok := strings.Cut(uri, "://"); ok {
|
||||
return before, nil
|
||||
}
|
||||
|
||||
return "", nil
|
||||
|
||||
Reference in New Issue
Block a user