Skip to content

Commit d7bd255

Browse files
authored
Merge pull request webpack#3205 from Tushkiz/fix/beautify-lint-errors
fixed 'beautify-lint' errors in 'lib/RuleSet.js'
2 parents 6ccb323 + eeaa45f commit d7bd255

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/RuleSet.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ RuleSet.normalizeRule = function(rule) {
117117
};
118118
try {
119119
newRule.resource = RuleSet.normalizeCondition(condition);
120-
} catch (error) {
120+
} catch(error) {
121121
throw new Error(RuleSet.buildErrorMessage(condition, error));
122122
}
123123
}
@@ -126,15 +126,15 @@ RuleSet.normalizeRule = function(rule) {
126126
checkResourceSource("resource");
127127
try {
128128
newRule.resource = RuleSet.normalizeCondition(rule.resource);
129-
} catch (error) {
129+
} catch(error) {
130130
throw new Error(RuleSet.buildErrorMessage(rule.resource, error));
131131
}
132132
}
133133

134134
if(rule.issuer) {
135135
try {
136136
newRule.issuer = RuleSet.normalizeCondition(rule.issuer);
137-
} catch (error) {
137+
} catch(error) {
138138
throw new Error(RuleSet.buildErrorMessage(rule.issuer, error));
139139
}
140140
}
@@ -195,7 +195,7 @@ RuleSet.normalizeRule = function(rule) {
195195

196196
RuleSet.buildErrorMessage = function buildErrorMessage(condition, error) {
197197
var conditionAsText = JSON.stringify(condition, function(key, value) {
198-
return (value === undefined) ? "undefined" : value;
198+
return value === undefined ? "undefined" : value;
199199
}, 2)
200200
var message = error.message + " in " + conditionAsText;
201201
return message;

0 commit comments

Comments
 (0)