Bug 1469054 - ESLint: Add no-fallthrough annotation. r?jdescottes
MozReview-Commit-ID: 5tBviheMTTk
--- 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);