mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-22 05:12:27 +00:00
legacy_numeric_constants
This commit is contained in:
parent
09569ef921
commit
79a622ae02
|
@ -1,5 +1,3 @@
|
|||
use std::usize;
|
||||
|
||||
use crate::{float::floating_window, theme::*};
|
||||
use crossterm::event::{KeyCode, KeyEvent, KeyEventKind};
|
||||
use ego_tree::{tree, NodeId};
|
||||
|
@ -241,7 +239,7 @@ impl CustomList {
|
|||
// Get the selected command
|
||||
if let Some(selected_command) = self.get_selected_command() {
|
||||
// If command is a folder, we don't display a preview
|
||||
if selected_command == "" {
|
||||
if selected_command.is_empty() {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user