mirror of
https://github.com/openharmony/ability_ability_runtime.git
synced 2026-08-24 22:21:36 -04:00
!15546 重构简单if结构至三元运算符
Merge pull request !15546 from zhangzezhong/refactor_review_options_0710
This commit is contained in:
@@ -432,11 +432,7 @@ bool UriPermissionManagerClient::RawDataToBoolVec(const UriPermissionRawData& ra
|
||||
for (uint32_t i = 0; i < boolCount; ++i) {
|
||||
char resChar;
|
||||
ss.read(reinterpret_cast<char *>(&resChar), sizeof(resChar));
|
||||
if (resChar == 0) {
|
||||
boolVec.at(i) = false;
|
||||
} else {
|
||||
boolVec.at(i) = true;
|
||||
}
|
||||
boolVec.at(i) = (resChar != 0);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user