mirror of
https://github.com/lightsoutgames/godot-tts
synced 2024-11-23 23:05:56 +00:00
Eliminate an unreachable code warning, since conditional compilation is used to fail fast where possible.
This commit is contained in:
parent
aa3c9475ab
commit
574edcf93c
|
@ -81,14 +81,9 @@ impl TTS {
|
|||
.done();
|
||||
builder
|
||||
.add_property("can_detect_screen_reader")
|
||||
.with_getter(|_: &TTS, _| {
|
||||
if cfg!(windows) {
|
||||
true
|
||||
} else {
|
||||
false
|
||||
}
|
||||
})
|
||||
.with_getter(|_: &TTS, _| if cfg!(windows) { true } else { false })
|
||||
.done();
|
||||
#[allow(unreachable_code)]
|
||||
builder
|
||||
.add_property("has_screen_reader")
|
||||
.with_getter(|_: &TTS, _| {
|
||||
|
|
Loading…
Reference in New Issue
Block a user