Skip to content
This repository has been archived by the owner on Jan 23, 2021. It is now read-only.

Commit

Permalink
Linting cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffposnick committed Jul 26, 2016
1 parent 1834a6b commit d0b05a1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ function setDefaults(cli, configFileFlags) {
compositeFlags.runtimeCaching = compositeFlags.runtimeCaching ||
configFileFlags.runtimeCaching;

compositeFlags.maximumFileSizeToCacheInBytes = compositeFlags.maximumFileSizeToCacheInBytes ||
compositeFlags.maximumFileSizeToCacheInBytes =
compositeFlags.maximumFileSizeToCacheInBytes ||
configFileFlags.maximumFileSizeToCacheInBytes;

return compositeFlags;
Expand Down
3 changes: 2 additions & 1 deletion lib/sw-precache.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ function generate(params, callback) {
// Strip the prefix to turn this into a relative URL.
var relativeUrl = fileAndSizeAndHash.file
.replace(
new RegExp('^(' + Object.keys(params.stripPrefixMulti).map(escapeRegExp).join('|') + ')'),
new RegExp('^(' + Object.keys(params.stripPrefixMulti)
.map(escapeRegExp).join('|') + ')'),
function(match) {
return params.stripPrefixMulti[match];
})
Expand Down
5 changes: 4 additions & 1 deletion test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,13 @@
// This is a test and we want descriptions to be useful, if this
// breaks the max-length, it's ok.

/* eslint-disable max-len */
/* eslint-disable max-len */
/* eslint-env node, mocha */
'use strict';

// Extra interfaces, like generateRuntimeCaching, are exposed while testing.
process.env.NODE_ENV = 'swprecache-test';

var assert = require('assert');
var externalFunctions = require('../lib/functions.js');
var fs = require('fs');
Expand Down

0 comments on commit d0b05a1

Please sign in to comment.