Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 0a9ad7da36c554b99b55d3064b1a405fecac32d6
      
https://github.com/WebKit/WebKit/commit/0a9ad7da36c554b99b55d3064b1a405fecac32d6
  Author: Ahmad Saleem <[email protected]>
  Date:   2026-07-23 (Thu, 23 Jul 2026)

  Changed paths:
    M Source/WTF/wtf/ParkingLot.cpp

  Log Message:
  -----------
  ParkingLot::ensureHashtable() has dead always-true check and variable 
shadowing
https://bugs.webkit.org/show_bug.cgi?id=320050
rdar://182987373

Reviewed by Chris Dumez.

The `if (!currentHashtable)` check was always true at that point, since
the preceding `if (currentHashtable) return currentHashtable;` already
established it was null. The inner scope then declared a new local
also named `currentHashtable`, shadowing the outer one. Removed the
dead check and renamed the local to `newHashtable` to avoid the
shadowing; no behavior change.

* Source/WTF/wtf/ParkingLot.cpp:

Canonical link: https://commits.webkit.org/317829@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to