Skip to content

Commit

Permalink
fix spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Leshiy committed Jul 15, 2024
1 parent 172a174 commit a426921
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions hermes/bin/src/packaging/app/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ impl ApplicationPackage {
}

/// Validate package with its signature and other contents.
/// If `untrasted` flag is `true` the signature will not be verified.
pub(crate) fn validate(&self, untrasted: bool) -> anyhow::Result<()> {
/// If `untrusted` flag is `true` the signature will not be verified.
pub(crate) fn validate(&self, untrusted: bool) -> anyhow::Result<()> {
let mut errors = Errors::new();

self.get_metadata()
Expand All @@ -94,7 +94,7 @@ impl ApplicationPackage {
Err(err) => errors.add_err(err),
}

if !untrasted {
if !untrusted {
self.verify_author_sign()
.unwrap_or_else(errors.get_add_err_fn());
}
Expand Down
6 changes: 3 additions & 3 deletions hermes/bin/src/packaging/wasm_module/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ impl WasmModulePackage {
}

/// Validate package with its signature and other contents.
/// If `untrasted` flag is `true` the signature will not be verified.
pub(crate) fn validate(&self, untrasted: bool) -> anyhow::Result<()> {
/// If `untrusted` flag is `true` the signature will not be verified.
pub(crate) fn validate(&self, untrusted: bool) -> anyhow::Result<()> {
let mut errors = Errors::new();

self.get_metadata()
Expand All @@ -99,7 +99,7 @@ impl WasmModulePackage {
self.get_settings_schema()
.map_or_else(errors.get_add_err_fn(), |_| ());

if !untrasted {
if !untrusted {
self.verify_sign().unwrap_or_else(errors.get_add_err_fn());
}

Expand Down

0 comments on commit a426921

Please sign in to comment.