fix accessible warning if reversed

This commit is contained in:
João M. Bezerra 2022-06-04 11:46:46 -03:00
parent c65959d648
commit 8bd78f49cd

View File

@ -68,7 +68,7 @@ macro_rules! warning {
pub fn _warning_helper() {
use crate::utils::colors::{ORANGE, RESET};
if !crate::cli::ACCESSIBLE.get().unwrap() {
if *crate::cli::ACCESSIBLE.get().unwrap() {
print!("{}Warning:{} ", *ORANGE, *RESET);
} else {
print!("{}[WARNING]{} ", *ORANGE, *RESET);