We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14a61a9 commit 58adb1eCopy full SHA for 58adb1e
rs/nns/governance/src/proposals/create_canister_and_install_code.rs
@@ -61,11 +61,10 @@ impl CreateCanisterAndInstallCode {
61
}
62
63
// Validate canister_settings.
64
- if let Some(settings) = canister_settings {
65
- if let Err(err) = RootCanisterSettings::try_from(settings) {
+ if let Some(settings) = canister_settings
+ && let Err(err) = RootCanisterSettings::try_from(settings) {
66
defects.push(err.error_message);
67
68
- }
69
70
// Assemble (and return) final result.
71
if !defects.is_empty() {
0 commit comments