Skip to content

Commit

Permalink
unwrap
Browse files Browse the repository at this point in the history
  • Loading branch information
Elmer Bulthuis committed Dec 5, 2019
1 parent fef826c commit 65bda00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/light/middlewares.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub fn create_switch_middleware() -> impl FnOnce(Dispatch<State, Action>) -> Dis
next(store, action);

if let Action::Switch = action {
let _lock = mutex.lock();
let _lock = mutex.lock().unwrap();
let state = store.get_state();
if state.select_power() {
store.dispatch(Action::TurnOff);
Expand Down

0 comments on commit 65bda00

Please sign in to comment.