From 58f1515a9d5e01b537695eb43e896cd51f92a1ed Mon Sep 17 00:00:00 2001 From: Chris Kankiewicz Date: Mon, 13 Apr 2020 10:57:49 -0700 Subject: [PATCH] Fixed static analysis errors --- app/src/ViewFunctions/FileUrl.php | 2 +- app/src/ViewFunctions/ZipUrl.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/ViewFunctions/FileUrl.php b/app/src/ViewFunctions/FileUrl.php index 7d7ee43..85c5252 100644 --- a/app/src/ViewFunctions/FileUrl.php +++ b/app/src/ViewFunctions/FileUrl.php @@ -22,7 +22,7 @@ class FileUrl extends Url return $this->escape($path); } - if ($path === null || $path === '') { + if ($path === '') { return ''; } diff --git a/app/src/ViewFunctions/ZipUrl.php b/app/src/ViewFunctions/ZipUrl.php index dd1f4a3..0487b51 100644 --- a/app/src/ViewFunctions/ZipUrl.php +++ b/app/src/ViewFunctions/ZipUrl.php @@ -18,7 +18,7 @@ class ZipUrl extends Url { $path = $this->stripLeadingSlashes($path); - if ($path === null || $path === '') { + if ($path === '') { return '?zip=.'; }