Skip to content

Commit 14bebd1

Browse files
authored
Do not list duplicate plugin entries. (#2243)
1 parent 1ac953a commit 14bebd1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

cmd/soroban-cli/src/commands/plugin/default.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
use itertools::Itertools;
12
use std::{path::PathBuf, process::Command};
23
use which::which;
34

@@ -56,6 +57,7 @@ pub fn list() -> Result<Vec<String>, Error> {
5657
})
5758
.filter(|s| !(utils::is_hex_string(s) && s.len() > MAX_HEX_LENGTH))
5859
.map(|s| s.replace("soroban-", "").replace("stellar-", ""))
60+
.unique()
5961
.collect())
6062
}
6163

0 commit comments

Comments
 (0)