legacy_numeric_constants

This commit is contained in:
Adam Perkowski 2024-07-19 16:01:44 +02:00
parent 09569ef921
commit 79a622ae02
No known key found for this signature in database
GPG Key ID: 7CBDB58ECF1D3478

View File

@ -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;
}