Skip to content

Commit

Permalink
cmd/telemeter-client: cmd/telemeter-benchmark: remove unnecessary con…
Browse files Browse the repository at this point in the history
…dition
  • Loading branch information
paulfantom committed Jun 3, 2019
1 parent f561a95 commit f09b968
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
8 changes: 3 additions & 5 deletions cmd/telemeter-benchmark/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,9 @@ func runCmd() error {
u.Path = path.Join(to.Path, "authorize")
toAuthorize = &u
}
if toUpload == nil {
u := *to
u.Path = path.Join(to.Path, "upload")
toUpload = &u
}
u := *to
u.Path = path.Join(to.Path, "upload")
toUpload = &u
}

if toUpload == nil || toAuthorize == nil {
Expand Down
8 changes: 3 additions & 5 deletions cmd/telemeter-client/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,9 @@ func (o *Options) Run() error {
}
toAuthorize = &u
}
if toUpload == nil {
u := *to
u.Path = path.Join(to.Path, "upload")
toUpload = &u
}
u := *to
u.Path = path.Join(to.Path, "upload")
toUpload = &u
}

if toUpload == nil || toAuthorize == nil {
Expand Down

0 comments on commit f09b968

Please sign in to comment.