mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-06-19 19:28:08 +02:00
Remove unnecessary check
This commit is contained in:
parent
90bf333934
commit
c948bc5f24
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user