Remove unnecessary check

This commit is contained in:
Bubka 2020-01-27 13:35:47 +01:00
parent 90bf333934
commit c948bc5f24

View File

@ -38,10 +38,7 @@ public function upload(Request $request)
public function delete($icon)
{
if( Storage::exists('public/icons/' . $icon) ) {
Storage::delete('public/icons/' . $icon);
}
Storage::delete('public/icons/' . $icon);
return response()->json(null, 204);
}