TSLint: re-enable no-unused-expression rule

This commit is contained in:
glacambre 2019-04-04 06:54:11 +02:00
parent c03b483261
commit b70832ef40
No known key found for this signature in database
GPG key ID: B9625DB1767553AC
2 changed files with 6 additions and 4 deletions

View file

@ -2785,11 +2785,15 @@ export async function clipboard(excmd: "open" | "yank" | "yankshort" | "yankcano
break break
case "open": case "open":
url = await getclip() url = await getclip()
url && open(url) if (url) {
open(url)
}
break break
case "tabopen": case "tabopen":
url = await getclip() url = await getclip()
url && tabopen(url) if (url) {
tabopen(url)
}
break break
case "xselpaste": case "xselpaste":
content = await getclip("selection") content = await getclip("selection")

View file

@ -27,9 +27,7 @@
"no-string-throw": false, "no-string-throw": false,
"no-trailing-whitespace": false, "no-trailing-whitespace": false,
"no-unnecessary-initializer": false, "no-unnecessary-initializer": false,
"no-unnecessary-type-assertion": false,
"no-unsafe-finally": false, "no-unsafe-finally": false,
"no-unused-expression": false,
"no-useless-cast": false, "no-useless-cast": false,
"no-useless-catch": false, "no-useless-catch": false,
"no-useless-catch": false, "no-useless-catch": false,