Eliminate an unreachable code warning, since conditional compilation is used to fail fast where possible.

This commit is contained in:
Nolan Darilek 2020-06-17 18:11:19 -05:00
parent aa3c9475ab
commit 574edcf93c

View File

@ -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, _| {