mirror of
https://github.com/yuzu-emu/yuzu-mainline.git
synced 2024-12-12 16:44:26 +01:00
readable_event: Remove unnecessary semicolon in Signal()
Resolves a -Wextra-semi warning. While we're at it, we can invert the branch to form a guard clause, unindenting all of the contained code.
This commit is contained in:
parent
30bd77c6e7
commit
aabf5b2059
@ -24,10 +24,12 @@ void ReadableEvent::Acquire(Thread* thread) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ReadableEvent::Signal() {
|
void ReadableEvent::Signal() {
|
||||||
if (!is_signaled) {
|
if (is_signaled) {
|
||||||
is_signaled = true;
|
return;
|
||||||
SynchronizationObject::Signal();
|
}
|
||||||
};
|
|
||||||
|
is_signaled = true;
|
||||||
|
SynchronizationObject::Signal();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ReadableEvent::Clear() {
|
void ReadableEvent::Clear() {
|
||||||
|
Loading…
Reference in New Issue
Block a user