Skip to content

Commit c5cf3ba

Browse files
committed
删除多余判断
1 parent 58952fc commit c5cf3ba

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/components/MysqlSafeTransaction.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,7 @@ export class MysqlSafeTransaction {
1919
return result
2020
})
2121

22-
// 统一清理事务更新缓存
23-
if (this.cache && clearCacheNsps.length > 0) {
24-
await this.cache.mDelete(clearCacheNsps)
25-
}
22+
if (clearCacheNsps.length > 0) { await this.cache.mDelete(clearCacheNsps) }
2623
return result
2724
}
2825
}

0 commit comments

Comments
 (0)