Skip to content

Commit b990344

Browse files
Make eslint pass
1 parent b23baad commit b990344

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,9 @@ function localizeDecl(decl, context) {
189189
}
190190

191191
module.exports = postcss.plugin('postcss-modules-local-by-default', function (options) {
192-
if (typeof options !== 'object') {options = {};} // If options is undefined or not an object the plugin fails
192+
if (typeof options !== 'object') {
193+
options = {}; // If options is undefined or not an object the plugin fails
194+
}
193195
if(options && options.mode) {
194196
if(options.mode !== "global" && options.mode !== "local" && options.mode !== "pure") {
195197
throw new Error("options.mode must be either 'global', 'local' or 'pure' (default 'local')");

0 commit comments

Comments
 (0)