mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-09 01:44:31 +02:00
Fixed PHPUnit exception
This commit is contained in:
parent
8e96971b9c
commit
1b3fc2c23c
2 changed files with 2 additions and 5 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue