forked from TrueCloudLab/rclone
fix Travis build errors with formatting
This commit is contained in:
parent
dc4c3e57cc
commit
0a1060f8d3
1 changed files with 3 additions and 4 deletions
|
@ -16,6 +16,7 @@ import (
|
||||||
|
|
||||||
"github.com/ncw/rclone/backend/onedrive/api"
|
"github.com/ncw/rclone/backend/onedrive/api"
|
||||||
"github.com/ncw/rclone/fs"
|
"github.com/ncw/rclone/fs"
|
||||||
|
"github.com/ncw/rclone/fs/config"
|
||||||
"github.com/ncw/rclone/fs/config/configmap"
|
"github.com/ncw/rclone/fs/config/configmap"
|
||||||
"github.com/ncw/rclone/fs/config/configstruct"
|
"github.com/ncw/rclone/fs/config/configstruct"
|
||||||
"github.com/ncw/rclone/fs/config/obscure"
|
"github.com/ncw/rclone/fs/config/obscure"
|
||||||
|
@ -28,7 +29,6 @@ import (
|
||||||
"github.com/ncw/rclone/lib/rest"
|
"github.com/ncw/rclone/lib/rest"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"golang.org/x/oauth2"
|
"golang.org/x/oauth2"
|
||||||
"github.com/ncw/rclone/fs/config"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -372,7 +372,7 @@ func NewFs(name, root string, m configmap.Mapper) (fs.Fs, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
f := &Fs{
|
f := &Fs{
|
||||||
name: name,
|
name: name,
|
||||||
root: root,
|
root: root,
|
||||||
opt: *opt,
|
opt: *opt,
|
||||||
driveID: driveID,
|
driveID: driveID,
|
||||||
|
@ -1054,9 +1054,8 @@ func (f *Fs) About() (usage *fs.Usage, err error) {
|
||||||
func (f *Fs) Hashes() hash.Set {
|
func (f *Fs) Hashes() hash.Set {
|
||||||
if f.driveType == driveTypePersonal {
|
if f.driveType == driveTypePersonal {
|
||||||
return hash.Set(hash.SHA1)
|
return hash.Set(hash.SHA1)
|
||||||
} else {
|
|
||||||
return hash.Set(hash.QuickXorHash)
|
|
||||||
}
|
}
|
||||||
|
return hash.Set(hash.QuickXorHash)
|
||||||
}
|
}
|
||||||
|
|
||||||
// ------------------------------------------------------------
|
// ------------------------------------------------------------
|
||||||
|
|
Loading…
Add table
Reference in a new issue