Skip to content

Commit 4c33c63

Browse files
author
damccorm
authored
Don't cache failures in BeginGetAreaLocation (#228)
1 parent 9a6a6ff commit 4c33c63

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

api/VsoClient.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,11 @@ export class VsoClient {
170170
let resourceLocation = resourceLocations[i];
171171
locationsLookup[resourceLocation.id.toLowerCase()] = resourceLocation;
172172
}
173+
// If we have completed successfully, cache the response.
174+
this._locationsByAreaPromises[area] = areaLocationsPromise;
175+
173176
return locationsLookup;
174177
});
175-
176-
this._locationsByAreaPromises[area] = areaLocationsPromise;
177178
}
178179

179180
return areaLocationsPromise;
@@ -309,4 +310,4 @@ export class VsoClient {
309310

310311
return result;
311312
}
312-
}
313+
}

0 commit comments

Comments
 (0)