Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

Commit

Permalink
gps: replace redundant lambda wrapper with method value
Browse files Browse the repository at this point in the history
Originally submitted by Iskander Sharipov, who has signed the CLA, as
#2029; submitting under my name to
get past the CLA bot.

Signed-off-by: Iskander Sharipov <quasilyte@gmail.com>
  • Loading branch information
kevinburke committed Mar 9, 2019
1 parent 22bd06b commit 11ef5ed
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions gps/source.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,7 @@ func newSourceGateway(ctx context.Context, src source, superv *supervisor, cache
local := src.existsLocally(ctx)
if local {
state |= sourceExistsLocally
if err := superv.do(ctx, src.upstreamURL(), ctValidateLocal, func(ctx context.Context) error {
return src.maybeClean(ctx)
}); err != nil {
if err := superv.do(ctx, src.upstreamURL(), ctValidateLocal, src.maybeClean); err != nil {
return nil, err
}
}
Expand Down

0 comments on commit 11ef5ed

Please sign in to comment.