mirror of
https://gitee.com/openharmony/startup_appspawn
synced 2024-11-27 01:00:38 +00:00
删除逻辑重复的代码
Signed-off-by: chennuo <chennuo12@huawei.com>
This commit is contained in:
parent
236ee7db72
commit
5b1b741a1e
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user