File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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
196196RuleSet . 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 ;
You can’t perform that action at this time.
0 commit comments