Skip to content

Commit

Permalink
Fix linting errors in source_cache.
Browse files Browse the repository at this point in the history
  • Loading branch information
vicapow committed Oct 18, 2016
1 parent 2bfde7f commit 0f10d33
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions js/source/source_cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ SourceCache.prototype = util.inherit(Evented, {
let i;
let coord;
let tile;
let parentTile;

this.updateCacheSize(transform);

Expand Down Expand Up @@ -332,9 +333,9 @@ SourceCache.prototype = util.inherit(Evented, {
// The tile we require is not yet loaded.
// Retain child or parent tiles that cover the same area.
if (!this.findLoadedChildren(coord, maxCoveringZoom, retain)) {
var parent = this.findLoadedParent(coord, minCoveringZoom, retain);
if (parent) {
this.addTile(parent.coord);
parentTile = this.findLoadedParent(coord, minCoveringZoom, retain);
if (parentTile) {
this.addTile(parentTile.coord);
}
}
}
Expand All @@ -351,9 +352,9 @@ SourceCache.prototype = util.inherit(Evented, {
if (this.findLoadedChildren(coord, maxCoveringZoom, retain)) {
retain[id] = true;
}
var parent = this.findLoadedParent(coord, minCoveringZoom, parentsForFading);
if (parent) {
this.addTile(parent.coord);
parentTile = this.findLoadedParent(coord, minCoveringZoom, parentsForFading);
if (parentTile) {
this.addTile(parentTile.coord);
}
}
}
Expand Down

0 comments on commit 0f10d33

Please sign in to comment.