solve Codacy identified issues

This commit is contained in:
ForestOfLight
2026-02-11 15:16:35 -08:00
Unverified
parent c0e5e9c72a
commit 2fec8c4c8b
2 changed files with 2 additions and 3 deletions
+2 -2
View File
@@ -29,7 +29,7 @@ export class MenuForm {
try { try {
return forceShow(this.player, MenuFormBuilder.buildAllInstanceName()).then((response) => { return forceShow(this.player, MenuFormBuilder.buildAllInstanceName()).then((response) => {
if (response.canceled) if (response.canceled)
return; return void 0;
let selection = response.selection; let selection = response.selection;
if (selection === 0) { if (selection === 0) {
new BuilderForm(this.player); new BuilderForm(this.player);
@@ -46,7 +46,7 @@ export class MenuForm {
} catch (e) { } catch (e) {
if (e.message === 'Menu timed out.') { if (e.message === 'Menu timed out.') {
this.player.sendMessage({ translate: 'construct.menu.open.timeout' }); this.player.sendMessage({ translate: 'construct.menu.open.timeout' });
return; return void 0;
} }
throw e; throw e;
} }
@@ -41,7 +41,6 @@ export const resetToBlockStates = {
cluster_count: 0, cluster_count: 0,
respawn_anchor_charge: 0, respawn_anchor_charge: 0,
turtle_egg_count: 0, turtle_egg_count: 0,
cluster_count: 0,
composter_fill_level: 0, composter_fill_level: 0,
end_portal_eye_bit: false end_portal_eye_bit: false
}; };