From 052fe299beb645af51e6391958610d0fd62ed579 Mon Sep 17 00:00:00 2001 From: Matei Adriel Date: Tue, 22 Jan 2019 22:28:55 +0200 Subject: [PATCH] typescript(translucid): fixed wrong order in ternary operator Signed-off-by: prescientmoon --- typescript/translucid/Translucid.js | 2 +- typescript/translucid/Translucid.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/typescript/translucid/Translucid.js b/typescript/translucid/Translucid.js index 25d4b35..a725411 100644 --- a/typescript/translucid/Translucid.js +++ b/typescript/translucid/Translucid.js @@ -53,7 +53,7 @@ class Translucid { else res.sendFile(prev); }); - decorated[0](sendFiles ? readResults : `${__dirname}/../../${filepath}`); + decorated[0]((!sendFiles) ? readResults : `${__dirname}/../../${filepath}`); }); } } diff --git a/typescript/translucid/Translucid.ts b/typescript/translucid/Translucid.ts index 211f729..667d9c9 100644 --- a/typescript/translucid/Translucid.ts +++ b/typescript/translucid/Translucid.ts @@ -61,7 +61,7 @@ class Translucid { res.sendFile(prev); }); - decorated[0](sendFiles?readResults:`${__dirname}/../../${filepath}`); + decorated[0]((!sendFiles)?readResults:`${__dirname}/../../${filepath}`); }); } }