From 0a1060f8d340ac5fc630b01de85977dbc8969cdc Mon Sep 17 00:00:00 2001 From: Cnly Date: Sun, 19 Aug 2018 02:01:34 +0800 Subject: [PATCH] fix Travis build errors with formatting --- backend/onedrive/onedrive.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/backend/onedrive/onedrive.go b/backend/onedrive/onedrive.go index 9194d77af..536753069 100644 --- a/backend/onedrive/onedrive.go +++ b/backend/onedrive/onedrive.go @@ -16,6 +16,7 @@ import ( "github.com/ncw/rclone/backend/onedrive/api" "github.com/ncw/rclone/fs" + "github.com/ncw/rclone/fs/config" "github.com/ncw/rclone/fs/config/configmap" "github.com/ncw/rclone/fs/config/configstruct" "github.com/ncw/rclone/fs/config/obscure" @@ -28,7 +29,6 @@ import ( "github.com/ncw/rclone/lib/rest" "github.com/pkg/errors" "golang.org/x/oauth2" - "github.com/ncw/rclone/fs/config" ) const ( @@ -372,7 +372,7 @@ func NewFs(name, root string, m configmap.Mapper) (fs.Fs, error) { } f := &Fs{ - name: name, + name: name, root: root, opt: *opt, driveID: driveID, @@ -1054,9 +1054,8 @@ func (f *Fs) About() (usage *fs.Usage, err error) { func (f *Fs) Hashes() hash.Set { if f.driveType == driveTypePersonal { return hash.Set(hash.SHA1) - } else { - return hash.Set(hash.QuickXorHash) } + return hash.Set(hash.QuickXorHash) } // ------------------------------------------------------------