mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-12-26 00:50:12 +01:00
Remove unnecessary check
This commit is contained in:
parent
90bf333934
commit
c948bc5f24
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user