Skip to content

Commit

Permalink
Remove unnecessary file_exists check.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixarntz committed Nov 18, 2024
1 parent 384a841 commit c005012
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/webp-uploads/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ function webp_uploads_get_attachment_file_mime_type( int $attachment_id, string
if ( '' === $file ) {
$file = get_attached_file( $attachment_id, true );
// File does not exist.
if ( false === $file || ! file_exists( $file ) ) {
if ( false === $file ) {
return '';
}
}
Expand Down

0 comments on commit c005012

Please sign in to comment.