mirror of
https://github.com/sharkdp/bat.git
synced 2025-03-14 06:38:24 +00:00
Use !theme.is_empty()
This commit is contained in:
parent
07d4179274
commit
304ee1489c
@ -201,7 +201,7 @@ impl HighlightingAssets {
|
|||||||
bat_warning!("Theme '{}' is deprecated, using 'ansi' instead.", theme);
|
bat_warning!("Theme '{}' is deprecated, using 'ansi' instead.", theme);
|
||||||
return self.get_theme("ansi");
|
return self.get_theme("ansi");
|
||||||
}
|
}
|
||||||
if theme != "" {
|
if !theme.is_empty() {
|
||||||
bat_warning!("Unknown theme '{}', using default.", theme)
|
bat_warning!("Unknown theme '{}', using default.", theme)
|
||||||
}
|
}
|
||||||
&self.theme_set.themes[self.fallback_theme.unwrap_or_else(|| Self::default_theme())]
|
&self.theme_set.themes[self.fallback_theme.unwrap_or_else(|| Self::default_theme())]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user