Skip to content

Allow upload using binaries from build-path #675

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 9 commits into from
Prev Previous commit
Next Next commit
removed useless variables
  • Loading branch information
cmaglie committed Apr 23, 2020
commit 2c9900bfe079ae6b1a7fa3f19be75832db4cf8e9
6 changes: 2 additions & 4 deletions commands/upload/upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,7 @@ func Upload(ctx context.Context, req *rpc.UploadReq, outStream io.Writer, errStr
}

// Set properties for verbose upload
Verbose := req.GetVerbose()
if Verbose {
if req.GetVerbose() {
if v, ok := uploadProperties.GetOk("upload.params.verbose"); ok {
uploadProperties.Set("upload.verbose", v)
}
Expand All @@ -142,8 +141,7 @@ func Upload(ctx context.Context, req *rpc.UploadReq, outStream io.Writer, errStr
}

// Set properties for verify
Verify := req.GetVerify()
if Verify {
if req.GetVerify() {
uploadProperties.Set("upload.verify", uploadProperties.Get("upload.params.verify"))
} else {
uploadProperties.Set("upload.verify", uploadProperties.Get("upload.params.noverify"))
Expand Down