diff --git a/src/content/hinting.ts b/src/content/hinting.ts index 68d3a93f..b408084f 100644 --- a/src/content/hinting.ts +++ b/src/content/hinting.ts @@ -108,7 +108,7 @@ export function hintPage( contentState.mode = "hint" modeState = new HintState(filterHints, resolve, reject, rapid) - if (rapid == false) { + if (!rapid) { buildHints(hintableElements, hint => { modeState.cleanUpHints() hint.result = onSelect(hint.target) diff --git a/src/excmds.ts b/src/excmds.ts index a587289b..16186f97 100644 --- a/src/excmds.ts +++ b/src/excmds.ts @@ -4113,7 +4113,7 @@ export async function updatecheck(polite = false) { const today = new Date() // any here are to shut up TS - it doesn't think Dates have subtraction defined :S const days_since = ((today as any) - (releasedate as any)) / (1000 * 60 * 60 * 24) - if (polite == false || (days_since > config.get("updatenagwait") && semverCompare(latest, config.get("updatenaglastversion")) > 0)) { + if (!polite || (days_since > config.get("updatenagwait") && semverCompare(latest, config.get("updatenaglastversion")) > 0)) { config.set("updatenaglastversion", latest) fillcmdline_tmp(30000, "Tridactyl " + latest + " is available. Visit about:addons, right click Tridactyl, click 'Find Updates'. Restart Firefox once it has downloaded.") } diff --git a/src/lib/native.ts b/src/lib/native.ts index edeb7be4..c082de33 100644 --- a/src/lib/native.ts +++ b/src/lib/native.ts @@ -187,17 +187,18 @@ export async function nativegate( // desiredOS = ["mac", "win", "android", "cros", "linux", "openbsd"] ): Promise { if (!desiredOS.includes((await browserBg.runtime.getPlatformInfo()).os)) { - if (interactive == true) + if (interactive) { logger.error( "# Tridactyl's native messenger doesn't support your operating system, yet.", ) + } return false } try { const actualVersion = await getNativeMessengerVersion() if (actualVersion !== undefined) { if (semverCompare(version, actualVersion) > 0) { - if (interactive == true) + if (interactive) logger.error( "# Please update to native messenger " + version + @@ -207,13 +208,13 @@ export async function nativegate( return false } return true - } else if (interactive == true) + } else if (interactive) logger.error( "# Native messenger not found. Please run `:installnative` and follow the instructions.", ) return false } catch (e) { - if (interactive == true) + if (interactive) logger.error( "# Native messenger not found. Please run `:installnative` and follow the instructions.", ) diff --git a/tslint.json b/tslint.json index 68f6591e..e2ac7aef 100644 --- a/tslint.json +++ b/tslint.json @@ -26,7 +26,6 @@ "no-ignored-return": false, "no-map-without-using": false, "no-misleading-array-reverse": false, - "no-redundant-boolean": false, "no-redundant-jump": false, "no-self-assignment": false, "no-shadowed-variable": false,