mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 03:55:24 +00:00
Shell: Don't do null check on NonnullRefPtr<T>
This will cause a problem when `NonnullRefPtr<T>::operator T*` will be declared as RETURNS_NONNULL. Clang emits a warning for this pointless null check, which breaks CI.
This commit is contained in:
parent
754ddda38a
commit
65b2d3add3
Notes:
sideshowbarker
2024-07-18 11:19:30 +09:00
Author: https://github.com/BertalanD Commit: https://github.com/SerenityOS/serenity/commit/65b2d3add37 Pull-request: https://github.com/SerenityOS/serenity/pull/8295 Reviewed-by: https://github.com/Hendiadyoin1 Reviewed-by: https://github.com/alimpfard
1 changed files with 1 additions and 1 deletions
|
@ -1775,7 +1775,7 @@ RefPtr<Value> IfCond::run(RefPtr<Shell> shell)
|
|||
{
|
||||
auto cond = m_condition->run(shell)->resolve_without_cast(shell);
|
||||
// The condition could be a builtin, in which case it has already run and exited.
|
||||
if (cond && cond->is_job()) {
|
||||
if (cond->is_job()) {
|
||||
auto cond_job_value = static_cast<const JobValue*>(cond.ptr());
|
||||
auto cond_job = cond_job_value->job();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue