mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-02-18 03:10:49 +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)
|
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);
|
return response()->json(null, 204);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user