Skip to content

Commit 6ed06b0

Browse files
author
picklerick2349
committed
Cleaning up tinydancer.rs
1 parent 611d687 commit 6ed06b0

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

tinydancer/src/tinydancer.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -103,21 +103,15 @@ impl TinyDancer {
103103
db_instance: db.clone(),
104104
});
105105

106-
let ui_service = if enable_ui_service {
107-
Some(UiService::new(UiConfig {
108-
client_status,
109-
enable_ui_service,
110-
tui_monitor,
111-
}))
112-
} else if tui_monitor {
106+
let ui_service = if enable_ui_service || tui_monitor {
113107
Some(UiService::new(UiConfig {
114108
client_status,
115109
enable_ui_service,
116110
tui_monitor,
117111
}))
118112
} else {
119113
None
120-
};
114+
};
121115

122116
// run
123117
sample_service

0 commit comments

Comments
 (0)