Skip to content

Commit 0fd0997

Browse files
refactor: No need to check if the path is empty before add_space
1 parent 20c7ed8 commit 0fd0997

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/widgets/entry.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,7 @@ impl PlistEntry {
142142
.col(|ui| {
143143
let prev_item_spacing = ui.spacing().item_spacing;
144144
ui.spacing_mut().item_spacing.x = 0.0;
145-
if !path.is_empty() {
146-
ui.add_space(ui.spacing().indent * path.len() as f32);
147-
}
145+
ui.add_space(ui.spacing().indent * path.len() as f32);
148146
if ty.is_expandable() {
149147
let size = vec2(ui.spacing().indent, ui.spacing().icon_width);
150148
let (_id, rect) = ui.allocate_space(size);

0 commit comments

Comments
 (0)