chore: fix clang-tidy warnings (#38079)
* chore: fix clang-tidy warnings * refactor: avoid need for NOLINTNEXTLINE
This commit is contained in:
parent
fe5cdd39d6
commit
08593fd2bd
20 changed files with 41 additions and 37 deletions
|
@ -455,6 +455,7 @@ v8::Local<v8::Promise> SystemPreferences::PromptTouchID(
|
|||
operation:LAAccessControlOperationUseKeySign
|
||||
localizedReason:[NSString stringWithUTF8String:reason.c_str()]
|
||||
reply:^(BOOL success, NSError* error) {
|
||||
// NOLINTBEGIN(bugprone-use-after-move)
|
||||
if (!success) {
|
||||
std::string err_msg = std::string(
|
||||
[error.localizedDescription UTF8String]);
|
||||
|
@ -470,6 +471,7 @@ v8::Local<v8::Promise> SystemPreferences::PromptTouchID(
|
|||
gin_helper::Promise<void>::ResolvePromise,
|
||||
std::move(p)));
|
||||
}
|
||||
// NOLINTEND(bugprone-use-after-move)
|
||||
}];
|
||||
|
||||
return handle;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue