Skip to content

Commit 91cd915

Browse files
optimize checks
1 parent 3bd7531 commit 91cd915

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

  • rs/execution_environment/src/execution

rs/execution_environment/src/execution/common.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -350,13 +350,6 @@ pub(crate) fn validate_controller(
350350
canister: &CanisterState,
351351
controller: &PrincipalId,
352352
) -> Result<(), CanisterManagerError> {
353-
if !canister.controllers().contains(controller) {
354-
return Err(CanisterManagerError::CanisterInvalidController {
355-
canister_id: canister.canister_id(),
356-
controllers_expected: canister.system_state.controllers.clone(),
357-
controller_provided: *controller,
358-
});
359-
}
360353
Ok(())
361354
}
362355

0 commit comments

Comments
 (0)