Skip to content

Commit

Permalink
Use const and let instead of var
Browse files Browse the repository at this point in the history
  • Loading branch information
TalAter committed Mar 20, 2017
1 parent 21fe5a0 commit b4ccc7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/cache.adderall.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/cache.adderall.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@
* @return {Promise} A promise that resolves to void
* @method addAll
*/
var addAll = function(cache, immutableRequests = [], mutableRequests = []) {
const addAll = function(cache, immutableRequests = [], mutableRequests = []) {
// Verify arguments
if (!(cache instanceof Cache) || !Array.isArray(immutableRequests) || !Array.isArray(mutableRequests)) {
return Promise.reject();
}

var newImmutableRequests = [];
let newImmutableRequests = [];

// Go over immutable requests
return Promise.all(
Expand Down

0 comments on commit b4ccc7e

Please sign in to comment.