Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjperez committed Dec 20, 2024
1 parent acb1e5e commit adb66d4
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions micro-rdk/src/common/ota.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,12 +274,7 @@ impl<S: OtaMetadataStorage> OtaService<S> {
}

pub(crate) async fn needs_update(&self) -> bool {
let curr_metadata = self.stored_metadata().await;
if curr_metadata.version == self.pending_version {
false
} else {
true
}
self.stored_metadata().await.version != self.pending_version
}

pub(crate) fn pending_version(&self) -> &str {
Expand Down

0 comments on commit adb66d4

Please sign in to comment.