server-ts: Fix getAttribute permitting null

This commit is contained in:
Elian Doran
2024-04-09 21:43:42 +03:00
parent b552f40ae8
commit 74441273a8
2 changed files with 2 additions and 5 deletions

View File

@@ -137,10 +137,7 @@ export default class Becca {
return branch;
}
getAttribute(attributeId: string | null): BAttribute | null {
if (!attributeId) {
return null;
}
getAttribute(attributeId: string): BAttribute | null {
return this.attributes[attributeId];
}