Skip to content

Commit a855c78

Browse files
committed
refactor: revert style
1 parent c9759f9 commit a855c78

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const Config = require('./lib/Config');
2525
* @param {Boolean} [options.noTypeDefinitions] For TypeScript imports, whether to resolve to `*.js` instead of `*.d.ts`.
2626
* @return {Object}
2727
*/
28-
module.exports = function (options) {
28+
module.exports = function(options) {
2929
const config = new Config(options);
3030

3131
if (!fs.existsSync(config.filename)) {
@@ -67,7 +67,7 @@ module.exports = function (options) {
6767
*
6868
* Params are those of module.exports
6969
*/
70-
module.exports.toList = function (options) {
70+
module.exports.toList = function(options) {
7171
options.isListForm = true;
7272

7373
return module.exports(options);
@@ -81,7 +81,7 @@ module.exports.toList = function (options) {
8181
* @param {Config} config
8282
* @return {Array}
8383
*/
84-
module.exports._getDependencies = function (config) {
84+
module.exports._getDependencies = function(config) {
8585
let dependencies;
8686
const precinctOptions = config.detectiveConfig;
8787
precinctOptions.includeCore = false;
@@ -159,7 +159,7 @@ function traverse(config) {
159159
if (config.filter) {
160160
debug('using filter function to filter out dependencies');
161161
debug('unfiltered number of dependencies: ' + dependencies.length);
162-
dependencies = dependencies.filter(function (filePath) {
162+
dependencies = dependencies.filter(function(filePath) {
163163
return config.filter(filePath, config.filename);
164164
});
165165
debug('filtered number of dependencies: ' + dependencies.length);

lib/Config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class Config {
4141
debug('visited: ', this.visited);
4242
}
4343

44-
clone() {
44+
clone () {
4545
return new Config(this);
4646
}
4747
}

0 commit comments

Comments
 (0)