Optimize check for empty file
parent
3a68534d20
commit
d5ab072ec1
|
@ -82,7 +82,7 @@ EOT
|
|||
return 1;
|
||||
}
|
||||
|
||||
if (file_get_contents($file) === '') {
|
||||
if (filesize($file) === 0) {
|
||||
file_put_contents($file, "{\n}\n");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue