Skip to content

Commit

Permalink
change(rclone): dont format parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
l3uddz committed Apr 20, 2020
1 parent d9ce036 commit 4d18e71
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 39 deletions.
31 changes: 0 additions & 31 deletions rclone/helpers.go

This file was deleted.

2 changes: 1 addition & 1 deletion syncer/copy.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

func (s *Syncer) Copy(additionalRcloneParams []string) error {
// set variables
extraParams := rclone.FormattedParams(s.Config.RcloneParams.Copy)
extraParams := s.Config.RcloneParams.Copy
if additionalRcloneParams != nil {
extraParams = append(extraParams, additionalRcloneParams...)
}
Expand Down
2 changes: 1 addition & 1 deletion syncer/dedupe.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
)

func (s *Syncer) Dedupe(additionalRcloneParams []string) error {
extraParams := rclone.FormattedParams(s.Config.RcloneParams.Dedupe)
extraParams := s.Config.RcloneParams.Dedupe
if additionalRcloneParams != nil {
extraParams = append(extraParams, additionalRcloneParams...)
}
Expand Down
2 changes: 1 addition & 1 deletion syncer/move.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func (s *Syncer) Move(additionalRcloneParams []string) error {
})
}

extraParams := rclone.FormattedParams(s.Config.RcloneParams.MoveServerSide)
extraParams := s.Config.RcloneParams.MoveServerSide
if additionalRcloneParams != nil {
extraParams = append(extraParams, additionalRcloneParams...)
}
Expand Down
2 changes: 1 addition & 1 deletion syncer/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

func (s *Syncer) Sync(additionalRcloneParams []string) error {
// set variables
extraParams := rclone.FormattedParams(s.Config.RcloneParams.Sync)
extraParams := s.Config.RcloneParams.Sync
if additionalRcloneParams != nil {
extraParams = append(extraParams, additionalRcloneParams...)
}
Expand Down
2 changes: 1 addition & 1 deletion uploader/copy.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

func (u *Uploader) Copy(additionalRcloneParams []string) error {
// set variables
extraParams := rclone.FormattedParams(u.Config.RcloneParams.Copy)
extraParams := u.Config.RcloneParams.Copy
if additionalRcloneParams != nil {
extraParams = append(extraParams, additionalRcloneParams...)
}
Expand Down
2 changes: 1 addition & 1 deletion uploader/dedupe.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
)

func (u *Uploader) Dedupe(additionalRcloneParams []string) error {
extraParams := rclone.FormattedParams(u.Config.RcloneParams.Dedupe)
extraParams := u.Config.RcloneParams.Dedupe
if additionalRcloneParams != nil {
extraParams = append(extraParams, additionalRcloneParams...)
}
Expand Down
4 changes: 2 additions & 2 deletions uploader/move.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func (u *Uploader) Move(serverSide bool, additionalRcloneParams []string) error
})
}

extraParams = rclone.FormattedParams(u.Config.RcloneParams.MoveServerSide)
extraParams = u.Config.RcloneParams.MoveServerSide
} else {
// this is a normal move (to only one location)
moveRemotes = append(moveRemotes, rclone.RemoteInstruction{
Expand All @@ -35,7 +35,7 @@ func (u *Uploader) Move(serverSide bool, additionalRcloneParams []string) error
ServerSide: false,
})

extraParams = rclone.FormattedParams(u.Config.RcloneParams.Move)
extraParams = u.Config.RcloneParams.Move
}

// set variables
Expand Down

0 comments on commit 4d18e71

Please sign in to comment.