Skip to content

Commit

Permalink
2.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
JadlionHD committed Nov 23, 2024
1 parent c126409 commit 0758cfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils/ItemsDat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class ItemsDat {

for (const key of keys) {
const strBuf = item[key] as unknown as string;
if (this.stringFields.includes(key) && strBuf) {
if (this.stringFields.includes(key) && typeof strBuf === "string") {
// calc length typeof item[key] === "string"
size += strBuf.length + 2;
}
Expand Down

0 comments on commit 0758cfb

Please sign in to comment.