Skip to content

Commit

Permalink
Removing breaking unwrap
Browse files Browse the repository at this point in the history
  • Loading branch information
BHouwens committed Feb 26, 2024
1 parent 30e042c commit cd3782f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/tests/interfaces.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ impl KvStoreConnection for DbStub {
return Ok(None);
}

let data = self.data.clone().unwrap();
let data = match self.data.clone() {
Some(d) => d,
None => return Ok(None),

};

match get_de_data::<T>(data) {
Ok(d) => Ok(Some(d)),
Expand Down

0 comments on commit cd3782f

Please sign in to comment.