typescript(translucid): fixed wrong order in ternary operator
Signed-off-by: prescientmoon <git@moonythm.dev>
This commit is contained in:
parent
1ff1cff2f7
commit
052fe299be
|
@ -53,7 +53,7 @@ class Translucid {
|
||||||
else
|
else
|
||||||
res.sendFile(prev);
|
res.sendFile(prev);
|
||||||
});
|
});
|
||||||
decorated[0](sendFiles ? readResults : `${__dirname}/../../${filepath}`);
|
decorated[0]((!sendFiles) ? readResults : `${__dirname}/../../${filepath}`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -61,7 +61,7 @@ class Translucid {
|
||||||
res.sendFile(prev);
|
res.sendFile(prev);
|
||||||
});
|
});
|
||||||
|
|
||||||
decorated[0](sendFiles?readResults:`${__dirname}/../../${filepath}`);
|
decorated[0]((!sendFiles)?readResults:`${__dirname}/../../${filepath}`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue