Skip to content

Commit

Permalink
Use map instead of and_then
Browse files Browse the repository at this point in the history
  • Loading branch information
Zokhoi committed Nov 6, 2023
1 parent e23a034 commit e9ba648
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepwell/src/services/view/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e9ba648

Please sign in to comment.