mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-06-13 13:04:03 +00:00
fixed lint errors
This commit is contained in:
parent
6f29a5fb42
commit
c09151d846
@ -169,11 +169,10 @@ export class Savegame extends ReadWriteProxy {
|
||||
* Returns if this game has a serialized game dump
|
||||
*/
|
||||
hasGameDump() {
|
||||
if(!this.currentData.dump) return false;
|
||||
if(Array.isArray(this.currentData.dump.entities)) {
|
||||
if (!this.currentData.dump) return false;
|
||||
if (Array.isArray(this.currentData.dump.entities)) {
|
||||
return this.currentData.dump.entities.length;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
return this.currentData.dump.entities.size;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user