Skip to content

Commit

Permalink
fix: braces and formatting on if - ImportExport.php
Browse files Browse the repository at this point in the history
  • Loading branch information
kryswoj committed Aug 7, 2023
1 parent dd4f040 commit a753de7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Admin/ImportExport.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,9 @@ public function importRequest()
'rb'
);

if ( !$file ) wp_send_json_error('Can\'t read the file.');

if (! $file) {
wp_send_json_error("Can't read the file.");
}

$json = fread(
$file,
Expand Down

0 comments on commit a753de7

Please sign in to comment.