Skip to content

Commit

Permalink
Fixes yarnpkg#3168
Browse files Browse the repository at this point in the history
  • Loading branch information
Maël Nison committed Apr 21, 2017
1 parent e7e2aa7 commit a54cd2a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/fetchers/tarball-fetcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,10 @@ export default class TarballFetcher extends BaseFetcher {
}

async _fetch(): Promise<FetchedOverride> {
if (url.parse(this.reference).protocol === null) {
return await this.fetchFromLocal(this.reference);
}

if (await this.getLocalAvailabilityStatus()) {
return await this.fetchFromLocal();
} else {
Expand Down

0 comments on commit a54cd2a

Please sign in to comment.