Niv Sardi commited on
Commit
3e81451
1 Parent(s): f1b8483

deno: better var names for resolve()

Browse files
Files changed (1) hide show
  1. deno/puppet.ts +4 -4
deno/puppet.ts CHANGED
@@ -14,11 +14,11 @@ const CHROME_ARGS = [
14
  '--disable-setuid-sandbox'
15
  ];
16
 
17
- async function resolve(a: string) {
18
- if (a.match(/(\d.?){4}/)) {
19
- return a;
20
  }
21
- return await Deno.resolveDns(a, "A");
22
  }
23
 
24
  export default class Runner extends EventEmitter {
 
14
  '--disable-setuid-sandbox'
15
  ];
16
 
17
+ async function resolve(q: string) {
18
+ if (q.match(/(\d.?){4}/)) {
19
+ return q;
20
  }
21
+ return await Deno.resolveDns(q, "A");
22
  }
23
 
24
  export default class Runner extends EventEmitter {