删除逻辑重复的代码

Signed-off-by: chennuo <chennuo12@huawei.com>
This commit is contained in:
chennuo 2024-09-23 09:15:07 +08:00
parent 236ee7db72
commit 5b1b741a1e

View File

@ -60,8 +60,6 @@ static int VarCurrentUseIdReplace(const SandboxContext *context,
int len = 0;
if (extraData == NULL || !CHECK_FLAGS_BY_INDEX(extraData->operation, SANDBOX_TAG_PERMISSION)) {
len = sprintf_s((char *)buffer, bufferLen, "%u", info->uid / UID_BASE);
} else if (context->appFullMountEnable && strlen(info->userName) > 0) {
len = sprintf_s((char *)buffer, bufferLen, "%s", "currentUser");
} else {
len = sprintf_s((char *)buffer, bufferLen, "%s", "currentUser");
}