Skip to content

Commit

Permalink
change(sa): remove unnecessary map guard
Browse files Browse the repository at this point in the history
  • Loading branch information
l3uddz committed Jun 13, 2020
1 parent f82827c commit f3cb06a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions cmd/manual.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,7 @@ var manualCmd = &cobra.Command{
// dest is a remote
dstRemote := stringutils.FromLeftUntil(flagDest, ":")
log.Debugf("Using service account folder for %q: %v", dstRemote, flagSaFolder)

if _, ok := remoteSaFolders[flagSaFolder]; ok {
remoteSaFolders[flagSaFolder] = append(remoteSaFolders[flagSaFolder], dstRemote)
} else {
remoteSaFolders[flagSaFolder] = []string{dstRemote}
}
remoteSaFolders[flagSaFolder] = append(remoteSaFolders[flagSaFolder], dstRemote)
}

default:
Expand Down

0 comments on commit f3cb06a

Please sign in to comment.