Skip to content

Commit

Permalink
Fix syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Mauro Lacy committed Jul 24, 2022
1 parent 956906d commit 46e9d0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/controllers/src/hooks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ impl<'a> Hooks<'a> {
Ok(HooksResponse { hooks })
}

// Returns true if hook is in hooks
// Return true if hook is in hooks
pub fn query_hook<Q: CustomQuery>(&self, deps: Deps<Q>, hook: String) -> StdResult<bool> {
Ok(self.query_hooks(deps)?.hooks.into_iter().any(|h| h == hook))
}
Expand Down

0 comments on commit 46e9d0b

Please sign in to comment.