We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b8443f commit f2ef6a1Copy full SHA for f2ef6a1
1 file changed
rs/cli/src/commands/subnet/force_replace.rs
@@ -46,14 +46,6 @@ impl ExecutableCommand for ForceReplace {
46
let from: BTreeSet<PrincipalId> = self.from.iter().cloned().collect();
47
let to: BTreeSet<PrincipalId> = self.to.iter().cloned().collect();
48
49
- if from.len() != to.len() {
50
- cmd.error(
51
- clap::error::ErrorKind::InvalidValue,
52
- "`from` and `to` have to contain the same number of elements".to_string(),
53
- )
54
- .exit();
55
- }
56
-
57
let duplicates = from.intersection(&to).collect_vec();
58
59
if duplicates.is_empty() {
0 commit comments