mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-23 14:18:11 +08:00
Clean up web code errors and make CI enforce them
This commit is contained in:
@@ -42,11 +42,8 @@
|
||||
(e.target as HTMLElement | undefined)?.focus();
|
||||
|
||||
// Open the menu list floating menu
|
||||
if (self) {
|
||||
self.open = true;
|
||||
} else {
|
||||
throw new Error("The menu bar floating menu has no associated ref");
|
||||
}
|
||||
if (self) self.open = true;
|
||||
else throw new Error("The menu bar floating menu has no reference to `self`");
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user