diff --git a/deepwell/src/services/view/service.rs b/deepwell/src/services/view/service.rs index a3c1c17fe6..17de211c7d 100644 --- a/deepwell/src/services/view/service.rs +++ b/deepwell/src/services/view/service.rs @@ -340,7 +340,7 @@ impl ViewService { None => viewer .user_session .as_ref() - .and_then(|session| Some(session.user.clone())), + .map(|session| session.user.clone()), }; let output = match user {