mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-07-15 20:05:04 +02:00
Remove unnecessary check
This commit is contained in:
@ -38,10 +38,7 @@ class IconController extends Controller
|
||||
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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user