Enable empty_if_body lint.

This CL updates the one instance of an empty if body in Dawn to
remove the if. This allows enabling the empty_if_body lint check.

Change-Id: I5c05db828e8033b4f3155a34c3a6723bfd3181d6
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/86082
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Commit-Queue: Dan Sinclair <dsinclair@chromium.org>
Auto-Submit: Dan Sinclair <dsinclair@chromium.org>
This commit is contained in:
dan sinclair 2022-04-11 15:50:50 +00:00 committed by Dawn LUCI CQ
parent c9fcc45843
commit 566d7f25b8
2 changed files with 21 additions and 23 deletions

View File

@ -10,4 +10,3 @@ filter=-readability/namespace
filter=-runtime/explicit
filter=-runtime/indentation_namespace
filter=-runtime/int
filter=-whitespace/empty_if_body

View File

@ -131,7 +131,7 @@ namespace dawn::native {
}
void RenderPassEncoder::APIEnd() {
if (mEncodingContext->TryEncode(
mEncodingContext->TryEncode(
this,
[&](CommandAllocator* allocator) -> MaybeError {
if (IsValidationEnabled()) {
@ -154,8 +154,7 @@ namespace dawn::native {
std::move(mIndirectDrawMetadata)));
return {};
},
"encoding %s.End().", this)) {
}
"encoding %s.End().", this);
}
void RenderPassEncoder::APIEndPass() {