Skip to content

Commit

Permalink
Emitter: is_some -> unwrap_or in storage
Browse files Browse the repository at this point in the history
  • Loading branch information
markuspluna committed Nov 16, 2023
1 parent 9996fe9 commit ffb0063
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion emitter/src/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ pub fn get_drop_status(e: &Env, backstop: &Address) -> bool {
e.storage()
.instance()
.get::<EmitterDataKey, bool>(&EmitterDataKey::Dropped(backstop.clone()))
.is_some()
.unwrap_or(false)
}

/// Set whether the emitter has performed the drop distribution or not for the current backstop
Expand Down

0 comments on commit ffb0063

Please sign in to comment.