LibWeb: Use preferred style for swift guard case clause
Some checks are pending
CI / macOS, arm64, Sanitizer, Clang (push) Waiting to run
CI / Linux, x86_64, Fuzzers, Clang (push) Waiting to run
CI / Linux, x86_64, Sanitizer, GNU (push) Waiting to run
CI / Linux, x86_64, Sanitizer, Clang (push) Waiting to run
Package the js repl as a binary artifact / Linux, arm64 (push) Waiting to run
Package the js repl as a binary artifact / macOS, arm64 (push) Waiting to run
Package the js repl as a binary artifact / Linux, x86_64 (push) Waiting to run
Run test262 and test-wasm / run_and_update_results (push) Waiting to run
Lint Code / lint (push) Waiting to run
Label PRs with merge conflicts / auto-labeler (push) Waiting to run
Push notes / build (push) Waiting to run

This stops `swift-format` complaining.
This commit is contained in:
Tim Ledbetter 2025-09-27 20:18:10 +01:00 committed by Tim Ledbetter
commit b2591309d6
Notes: github-actions[bot] 2025-09-27 19:40:05 +00:00

View file

@ -454,7 +454,7 @@ public class HTMLTokenizer {
}
func isAppropriateEndTagToken(_ token: HTMLToken) -> Bool {
guard case let .EndTag(endTagName, _, _, _) = token.type else {
guard case .EndTag(let endTagName, _, _, _) = token.type else {
preconditionFailure("isAppropriateEndTagToken called with non-end-tag token")
}
if let startTagName = self.lastStartTagName {