fixed the unneeded return statement warnings. (#31863)

This commit is contained in:
Aarya Khandelwal 2024-03-26 14:28:34 +05:30 committed by GitHub
parent f7669b5238
commit d814d05539
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 33 additions and 33 deletions

View file

@ -1090,7 +1090,7 @@ impl GlobalScope {
}
}
} else {
return warn!("start_message_port called on a global not managing any ports.");
warn!("start_message_port called on a global not managing any ports.")
}
}
@ -1111,7 +1111,7 @@ impl GlobalScope {
},
};
} else {
return warn!("close_message_port called on a global not managing any ports.");
warn!("close_message_port called on a global not managing any ports.")
}
}