1
Fork 0

typescript(translucid): fixed wrong order in ternary operator

Signed-off-by: prescientmoon <git@moonythm.dev>
This commit is contained in:
Matei Adriel 2019-01-22 22:28:55 +02:00 committed by prescientmoon
parent 1ff1cff2f7
commit 052fe299be
Signed by: prescientmoon
SSH key fingerprint: SHA256:UUF9JT2s8Xfyv76b8ZuVL7XrmimH4o49p4b+iexbVH4
2 changed files with 2 additions and 2 deletions

View file

@ -53,7 +53,7 @@ class Translucid {
else
res.sendFile(prev);
});
decorated[0](sendFiles ? readResults : `${__dirname}/../../${filepath}`);
decorated[0]((!sendFiles) ? readResults : `${__dirname}/../../${filepath}`);
});
}
}

View file

@ -61,7 +61,7 @@ class Translucid {
res.sendFile(prev);
});
decorated[0](sendFiles?readResults:`${__dirname}/../../${filepath}`);
decorated[0]((!sendFiles)?readResults:`${__dirname}/../../${filepath}`);
});
}
}