Merge pull request #1680 from harshavardhana/gofmt
url: isURLPrefixExists() should use non-recursive mechanism.
This commit is contained in:
+1
-1
@@ -44,7 +44,7 @@ const (
|
||||
|
||||
var ( // GOOS specific ignore list.
|
||||
ignoreFiles = map[string][]string{
|
||||
"darwin": []string{".DS_Store"},
|
||||
"darwin": {".DS_Store"},
|
||||
// "default": []string{""},
|
||||
}
|
||||
)
|
||||
|
||||
+1
-1
@@ -216,7 +216,7 @@ func isURLPrefixExists(urlPrefix string, incomplete bool) bool {
|
||||
if err != nil {
|
||||
return false
|
||||
}
|
||||
isRecursive := true
|
||||
isRecursive := false
|
||||
isIncomplete := incomplete
|
||||
for entry := range clnt.List(isRecursive, isIncomplete) {
|
||||
return entry.Err == nil
|
||||
|
||||
Reference in New Issue
Block a user