Simplifying switch case

This commit is contained in:
Frederick F. Kautz IV
2015-04-08 23:18:07 -07:00
parent c8a96326ec
commit a2d0bfdc62
-5
View File
@@ -86,12 +86,7 @@ func getNewClient(debug bool, urlStr string) (clnt client.Client, err error) {
clnt = s3.GetNewClient(&auth, urlStr, http.DefaultTransport)
}
return clnt, nil
case urlFile: // POSIX compatible file systems
fallthrough
case urlUnknown: // Unknown type
fallthrough
default:
return nil, iodine.New(errUnsupportedScheme, nil)
}
}