Skip to content

Commit 58ca23a

Browse files
committed
Simplification
1 parent b67ad02 commit 58ca23a

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/js/tabs/auxiliary.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,7 @@ auxiliary.initialize = function (callback) {
5050
}
5151

5252
function isFlightMode(name) {
53-
for (let value of flightModes) {
54-
if (name == value) {
55-
return true;
56-
}
57-
}
58-
return false;
53+
return flightModes.includes(name);
5954
}
6055

6156
MSP.send_message(MSPCodes.MSP_BOXNAMES, false, false, get_mode_ranges);

0 commit comments

Comments
 (0)