Skip to content

Commit 58adb1e

Browse files
lint
1 parent 14a61a9 commit 58adb1e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

rs/nns/governance/src/proposals/create_canister_and_install_code.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,10 @@ impl CreateCanisterAndInstallCode {
6161
}
6262

6363
// Validate canister_settings.
64-
if let Some(settings) = canister_settings {
65-
if let Err(err) = RootCanisterSettings::try_from(settings) {
64+
if let Some(settings) = canister_settings
65+
&& let Err(err) = RootCanisterSettings::try_from(settings) {
6666
defects.push(err.error_message);
6767
}
68-
}
6968

7069
// Assemble (and return) final result.
7170
if !defects.is_empty() {

0 commit comments

Comments
 (0)