Browse Source

Prettier

master
Dylan Baker 5 years ago
parent
commit
17b32a8801
1 changed files with 10 additions and 9 deletions
  1. 10
    9
      src/ast.ts

+ 10
- 9
src/ast.ts View File

281
       const rules: Array<string | EnvError> = this.children
281
       const rules: Array<string | EnvError> = this.children
282
         .filter((child) => child instanceof Rule)
282
         .filter((child) => child instanceof Rule)
283
         .map(
283
         .map(
284
-        (child): string | EnvError => {
285
-          return child.compile(env, opts);
286
-        }
287
-      );
284
+          (child): string | EnvError => {
285
+            return child.compile(env, opts);
286
+          }
287
+        );
288
       const rulesError = rules.find((child) => child instanceof EnvError);
288
       const rulesError = rules.find((child) => child instanceof EnvError);
289
       if (rulesError !== undefined) return rulesError;
289
       if (rulesError !== undefined) return rulesError;
290
 
290
 
291
       const compiledRules = rules.join(lineSpacer);
291
       const compiledRules = rules.join(lineSpacer);
292
 
292
 
293
       const children: Array<string | EnvError> = this.children
293
       const children: Array<string | EnvError> = this.children
294
-      .filter((child) => child instanceof RuleSet).map(
295
-        (child): string | EnvError => {
296
-          return child.compile(env, opts);
297
-        }
298
-      );
294
+        .filter((child) => child instanceof RuleSet)
295
+        .map(
296
+          (child): string | EnvError => {
297
+            return child.compile(env, opts);
298
+          }
299
+        );
299
       const childrenError = children.find((child) => child instanceof EnvError);
300
       const childrenError = children.find((child) => child instanceof EnvError);
300
       if (childrenError !== undefined) return childrenError;
301
       if (childrenError !== undefined) return childrenError;
301
 
302
 

Loading…
Cancel
Save