mirror of
https://github.com/restic/restic.git
synced 2025-12-04 00:01:48 +00:00
fix Hound warning
This commit is contained in:
@@ -53,7 +53,7 @@ func ParseConfig(s string) (interface{}, error) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func createConfig(endpoint string, path []string, useHttp bool) (interface{}, error) {
|
func createConfig(endpoint string, path []string, useHTTP bool) (interface{}, error) {
|
||||||
var prefix string
|
var prefix string
|
||||||
switch {
|
switch {
|
||||||
case len(path) < 1:
|
case len(path) < 1:
|
||||||
@@ -65,7 +65,7 @@ func createConfig(endpoint string, path []string, useHttp bool) (interface{}, er
|
|||||||
}
|
}
|
||||||
return Config{
|
return Config{
|
||||||
Endpoint: endpoint,
|
Endpoint: endpoint,
|
||||||
UseHTTP: useHttp,
|
UseHTTP: useHTTP,
|
||||||
Bucket: path[0],
|
Bucket: path[0],
|
||||||
Prefix: prefix,
|
Prefix: prefix,
|
||||||
}, nil
|
}, nil
|
||||||
|
|||||||
Reference in New Issue
Block a user