Remove dead code path

This commit is contained in:
Alex Cabal 2024-03-16 13:39:03 -05:00
parent 2714dba324
commit bb80fb206d

View file

@ -64,10 +64,6 @@ try{
// Increment local download count, expires in 2 weeks
$downloadCount++;
setcookie('download-count', (string)$downloadCount, ['expires' => strtotime('+2 week'), 'path' => '/', 'domain' => SITE_DOMAIN, 'secure' => true, 'httponly' => false, 'samesite' => 'Lax']);
if(!$showThankYouPage){
exit();
}
}
catch(Exceptions\InvalidFileException | Exceptions\EbookNotFoundException){
Template::Emit404();