From 3bf2bdcce7fe174b4fc5b8a311ad019858b74c70 Mon Sep 17 00:00:00 2001 From: "Adrien Minne (adrm)" Date: Tue, 22 Oct 2024 11:15:20 +0200 Subject: [PATCH] [REF] cleanup: useless break and continue statements Task: 4276932 Part-of: odoo/o-spreadsheet#5115 Signed-off-by: Vincent Schippefilt (vsc) --- .../side_panel/find_and_replace/find_and_replace_store.ts | 1 - src/plugins/ui_feature/ui_sheet.ts | 1 - tools/bundle_xml/bundle_xml_templates.cjs | 1 - 3 files changed, 3 deletions(-) diff --git a/src/components/side_panel/find_and_replace/find_and_replace_store.ts b/src/components/side_panel/find_and_replace/find_and_replace_store.ts index 1c8756b031..0e7ae0b696 100644 --- a/src/components/side_panel/find_and_replace/find_and_replace_store.ts +++ b/src/components/side_panel/find_and_replace/find_and_replace_store.ts @@ -186,7 +186,6 @@ export class FindAndReplaceStore extends SpreadsheetStore implements HighlightPr ...sheetIds.slice(activeSheetIndex + 1), ...sheetIds.slice(0, activeSheetIndex), ]; - break; case "activeSheet": return [this.getters.getActiveSheetId()]; case "specificRange": diff --git a/src/plugins/ui_feature/ui_sheet.ts b/src/plugins/ui_feature/ui_sheet.ts index 416403f366..86d314bd9e 100644 --- a/src/plugins/ui_feature/ui_sheet.ts +++ b/src/plugins/ui_feature/ui_sheet.ts @@ -201,7 +201,6 @@ export class SheetUIPlugin extends UIPlugin { if (!isEqual(zone, newZone)) { hasExpanded = true; zone = newZone; - continue; } } while (hasExpanded); diff --git a/tools/bundle_xml/bundle_xml_templates.cjs b/tools/bundle_xml/bundle_xml_templates.cjs index 0d35a60124..beb10c1397 100644 --- a/tools/bundle_xml/bundle_xml_templates.cjs +++ b/tools/bundle_xml/bundle_xml_templates.cjs @@ -91,7 +91,6 @@ function writeToFile(filepath, data) { fs.writeFile(filepath, data, (err) => { if (err) { process.stdout.write(`Error while writing file ${filepath}: ${err}`); - return; } }); }