Use Option::unwrap_or instead of is_some followed by unwrap in start_server_tui (#2432)
This commit is contained in:
committed by
Antioch Peverell
parent
ef5d83817e
commit
b22e5752be
@@ -45,7 +45,7 @@ fn start_server(config: servers::ServerConfig) {
|
||||
fn start_server_tui(config: servers::ServerConfig) {
|
||||
// Run the UI controller.. here for now for simplicity to access
|
||||
// everything it might need
|
||||
if config.run_tui.is_some() && config.run_tui.unwrap() {
|
||||
if config.run_tui.unwrap_or(false) {
|
||||
warn!("Starting GRIN in UI mode...");
|
||||
servers::Server::start(config, |serv: Arc<servers::Server>| {
|
||||
let running = Arc::new(AtomicBool::new(true));
|
||||
|
||||
Reference in New Issue
Block a user