summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/file.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file.ts b/src/file.ts
index 78def41..2203e48 100644
--- a/src/file.ts
+++ b/src/file.ts
@@ -29,7 +29,7 @@ export class TASD {
writeUint8(this.g_keylen, header, 6);
const packets = [ header ];
if (this._isDirty) {
- this.packets = this.packets.filter((packet) => packet.key === PACKET_TYPES.DUMP_LAST_MODIFIED);
+ this.packets = this.packets.filter((packet) => packet.key !== PACKET_TYPES.DUMP_LAST_MODIFIED);
this.packets.push(new DumpLastModifiedPacket(BigInt(Date.now())));
}
for (const packet of this.packets) {