Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

Commit

Permalink
refactor: drop else/if stmt
Browse files Browse the repository at this point in the history
Since type is validated to be either 'js' or 'css' there was no point in
leaving a 3rd case (not js or css) open.
  • Loading branch information
digitalsadhu committed Mar 7, 2018
1 parent 787d11b commit d637672
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ module.exports = class Client {

if (type === 'css') {
return new CssWriter(files);
} else if (type === 'js') {
} else {
const writer = new JsWriter(files, options);

this.transforms.forEach(entry => {
Expand Down

0 comments on commit d637672

Please sign in to comment.