Bug 1437828 - Manual eslint fix. r=jryans draft
authorAlexandre Poirot <poirot.alex@gmail.com>
Wed, 14 Feb 2018 01:33:20 -0800
changeset 754798 3a83bbdb439ade5e8e45e2b9f41874a05c8278f7
parent 754797 9d66cc0ac667d92541344b425c1067bd80cacfad
child 754799 371dcd98fc452fc26fbe9eb60ad3e822216bc58e
push id99001
push userbmo:poirot.alex@gmail.com
push dateWed, 14 Feb 2018 10:14:19 +0000
reviewersjryans
bugs1437828
milestone60.0a1
Bug 1437828 - Manual eslint fix. r=jryans MozReview-Commit-ID: 6L302w5vUa8
devtools/server/tests/unit/test_sourcemaps-16.js
--- a/devtools/server/tests/unit/test_sourcemaps-16.js
+++ b/devtools/server/tests/unit/test_sourcemaps-16.js
@@ -16,29 +16,30 @@ function run_test() {
   gDebuggee = addTestGlobal("test-sourcemaps");
   gClient = new DebuggerClient(DebuggerServer.connectPipe());
   gClient.connect().then(function () {
     attachTestThread(gClient, "test-sourcemaps", testSourcemap);
   });
   do_test_pending();
 }
 
-const testSourcemap = async function (threadResponse, tabClient, threadClient, tabResponse) {
-    evalTestCode();
+const testSourcemap = async function (threadResponse, tabClient, threadClient,
+  tabResponse) {
+  evalTestCode();
 
-    const { sources } = await getSources(threadClient);
+  const { sources } = await getSources(threadClient);
 
-    for (let form of sources) {
-      let sourceResponse = await getSourceContent(threadClient.source(form));
-      ok(sourceResponse, "Should be able to get the source response");
-      ok(sourceResponse.source, "Should have the source text as well");
-    }
+  for (let form of sources) {
+    let sourceResponse = await getSourceContent(threadClient.source(form));
+    ok(sourceResponse, "Should be able to get the source response");
+    ok(sourceResponse.source, "Should have the source text as well");
+  }
 
-    finishClient(gClient);
-  };
+  finishClient(gClient);
+};
 
 const TEST_FILE = "babel_and_browserify_script_with_source_map.js";
 
 function evalTestCode() {
   const testFileContents = readFile(TEST_FILE);
   Cu.evalInSandbox(testFileContents,
                    gDebuggee,
                    "1.8",