Skip to content

Commit

Permalink
Inverted the logic of FileExistsLocally as suggested by @SwampDragons
Browse files Browse the repository at this point in the history
…as remote URLs are assumed to exist locally.
  • Loading branch information
arizvisa committed Feb 3, 2018
1 parent c98a074 commit c366a1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ func FileExistsLocally(original string) bool {
// Check to see that it's got a Local way of doing things.
local, ok := d.(LocalDownloader)
if !ok {
return false
return true // XXX: Remote URLs short-circuit this logic.
}

// Figure out where we're at.
Expand Down

0 comments on commit c366a1e

Please sign in to comment.