aboutsummaryrefslogtreecommitdiff
path: root/cmd/podman/cp.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-07-04 13:51:27 +0200
committerGitHub <noreply@github.com>2019-07-04 13:51:27 +0200
commit1fe2965e4f672674f7b66648e9973a0ed5434bb4 (patch)
tree8d5385f5939ff3c139dc2e15b112ce4ad9797b1a /cmd/podman/cp.go
parent1de81bc71704f4a317756c866695740fb6f65a9b (diff)
parentfec1de6ef4b3f769ba0906cda948a3215709cd37 (diff)
downloadpodman-1fe2965e4f672674f7b66648e9973a0ed5434bb4.tar.gz
podman-1fe2965e4f672674f7b66648e9973a0ed5434bb4.tar.bz2
podman-1fe2965e4f672674f7b66648e9973a0ed5434bb4.zip
Merge pull request #3495 from baude/golandcodecleanup
trivial cleanups from golang
Diffstat (limited to 'cmd/podman/cp.go')
-rw-r--r--cmd/podman/cp.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/podman/cp.go b/cmd/podman/cp.go
index 2d92fbb47..f6ac5f8f7 100644
--- a/cmd/podman/cp.go
+++ b/cmd/podman/cp.go
@@ -86,7 +86,7 @@ func copyBetweenHostAndContainer(runtime *libpod.Runtime, src string, dest strin
return errors.Errorf("invalid arguments %s, %s you must specify paths", src, dest)
}
ctr := srcCtr
- isFromHostToCtr := (ctr == nil)
+ isFromHostToCtr := ctr == nil
if isFromHostToCtr {
ctr = destCtr
}
@@ -307,7 +307,7 @@ func copy(src, destPath, dest string, idMappingOpts storage.IDMappingOptions, ch
if err != nil && !os.IsNotExist(err) {
return errors.Wrapf(err, "error checking directory %q", destdir)
}
- destDirIsExist := (err == nil)
+ destDirIsExist := err == nil
if err = os.MkdirAll(destdir, 0755); err != nil {
return errors.Wrapf(err, "error creating directory %q", destdir)
}