Skip to content

Commit b0dd938

Browse files
authored
fix: filter empty URLs from array (#50)
1 parent e0f0245 commit b0dd938

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/config.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ impl BuilderConfig {
160160
tx_broadcast_urls: env::var(TX_BROADCAST_URLS)
161161
.unwrap_or_default()
162162
.split(',')
163+
.map(str::trim)
164+
.filter(|url| !url.is_empty())
163165
.map(ToOwned::to_owned)
164166
.map(Into::into)
165167
.collect(),

0 commit comments

Comments
 (0)