Fixed PHPUnit exception

This commit is contained in:
Jan Böhmer 2023-07-29 19:03:46 +02:00
parent 8e96971b9c
commit 1b3fc2c23c
2 changed files with 2 additions and 5 deletions

View file

@ -56,9 +56,6 @@ class FAIconGenerator
*/
public function fileExtensionToFAType(string $extension): string
{
if ('' === $extension) {
throw new InvalidArgumentException('You must specify an extension!');
}
//Normalize file extension
$extension = strtolower($extension);
foreach (self::EXT_MAPPING as $fa => $exts) {