don't need if let here
This commit is contained in:
parent
05279201c8
commit
611d635df5
1 changed files with 1 additions and 1 deletions
|
|
@ -61,7 +61,7 @@ async fn main() -> Result<(), TipiLangError> {
|
||||||
let swap = Arc::new(ArcSwap::from(Arc::new(registry)));
|
let swap = Arc::new(ArcSwap::from(Arc::new(registry)));
|
||||||
if !empty {
|
if !empty {
|
||||||
let registry = swap.clone().load();
|
let registry = swap.clone().load();
|
||||||
if let Some(main) = registry.get("/main") {
|
if registry.get("/main").is_some() {
|
||||||
vm::run(registry, "/main")?;
|
vm::run(registry, "/main")?;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue