Skip to content

Commit

Permalink
refactor: revert style
Browse files Browse the repository at this point in the history
  • Loading branch information
jjangga0214 authored and mrjoelkemp committed Aug 3, 2022
1 parent 5c46357 commit 3b20f50
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const Config = require('./lib/Config');
* @param {Boolean} [options.noTypeDefinitions] For TypeScript imports, whether to resolve to `*.js` instead of `*.d.ts`.
* @return {Object}
*/
module.exports = function (options) {
module.exports = function(options) {
const config = new Config(options);

if (!fs.existsSync(config.filename)) {
Expand Down Expand Up @@ -67,7 +67,7 @@ module.exports = function (options) {
*
* Params are those of module.exports
*/
module.exports.toList = function (options) {
module.exports.toList = function(options) {
options.isListForm = true;

return module.exports(options);
Expand All @@ -81,7 +81,7 @@ module.exports.toList = function (options) {
* @param {Config} config
* @return {Array}
*/
module.exports._getDependencies = function (config) {
module.exports._getDependencies = function(config) {
let dependencies;
const precinctOptions = config.detectiveConfig;
precinctOptions.includeCore = false;
Expand Down Expand Up @@ -159,7 +159,7 @@ function traverse(config) {
if (config.filter) {
debug('using filter function to filter out dependencies');
debug('unfiltered number of dependencies: ' + dependencies.length);
dependencies = dependencies.filter(function (filePath) {
dependencies = dependencies.filter(function(filePath) {
return config.filter(filePath, config.filename);
});
debug('filtered number of dependencies: ' + dependencies.length);
Expand Down
2 changes: 1 addition & 1 deletion lib/Config.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class Config {
debug('visited: ', this.visited);
}

clone() {
clone () {
return new Config(this);
}
}
Expand Down

0 comments on commit 3b20f50

Please sign in to comment.