Bug 1469054 - ESLint: Add no-fallthrough annotation. r?jdescottes draft
authorHiroyuki Ikezoe <hikezoe@mozilla.com>
Thu, 09 Aug 2018 14:27:56 +0900
changeset 827780 f084600d8f801dec28bc09f7e529ff690ea63e43
parent 827779 ab38cebf3f708abb54ce96003bd6fd98ea5f14f9
child 827781 8d52a754af274242c90264cdb47cef1f818a8cc0
push id118583
push userhikezoe@mozilla.com
push dateThu, 09 Aug 2018 06:03:03 +0000
reviewersjdescottes
bugs1469054
milestone63.0a1
Bug 1469054 - ESLint: Add no-fallthrough annotation. r?jdescottes MozReview-Commit-ID: 5tBviheMTTk
devtools/shared/adb/adb.js
--- a/devtools/shared/adb/adb.js
+++ b/devtools/shared/adb/adb.js
@@ -764,16 +764,17 @@ const ADB = {
             shutdown();
             return;
           }
           state = "decode-shell";
           if (client.getBuffer(data).byteLength == 4) {
             break;
           }
           ignoreResponseCode = true;
+          // eslint-disable-next-lined no-fallthrough
         case "decode-shell":
           const decoder = new TextDecoder();
           const text = new Uint8Array(client.getBuffer(data),
                                       ignoreResponseCode ? 4 : 0);
           stdout += decoder.decode(text);
           break;
         default:
           console.log("shell Unexpected State: " + state);