From 27f489fadfe5d64f0f3073fafe9e65d46c017465 Mon Sep 17 00:00:00 2001 From: xiao-77 Date: Wed, 13 Nov 2024 11:01:11 +0800 Subject: [PATCH] fix ci error. --- source/libs/wal/src/walMgmt.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/source/libs/wal/src/walMgmt.c b/source/libs/wal/src/walMgmt.c index edf702b948..e2c5e66158 100644 --- a/source/libs/wal/src/walMgmt.c +++ b/source/libs/wal/src/walMgmt.c @@ -123,11 +123,9 @@ int32_t walInitWriteFileForSkip(SWal *pWal) { pWal->writeCur = 0; _exit: if (code != TSDB_CODE_SUCCESS) { - if (pIdxTFile) (void)taosCloseFile(&pIdxTFile); - if (pLogTFile) (void)taosCloseFile(&pLogTFile); + (void)taosCloseFile(&pIdxTFile); + (void)taosCloseFile(&pLogTFile); } - (void)taosCloseFile(&pIdxTFile); - (void)taosCloseFile(&pLogTFile); TAOS_RETURN(code); }