Skip to content

Commit 69e67aa

Browse files
committed
Prevent whitespace from leaking into the instance name before using it
1 parent fe2d955 commit 69e67aa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libdd-common/src/azure_app_services.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ fn resolve_instance_name(
421421
computer_name: Option<&str>,
422422
) -> Option<String> {
423423
fn non_empty(s: Option<&str>) -> Option<&str> {
424-
s.filter(|v| !v.trim().is_empty())
424+
s.map(|v| v.trim()).filter(|v| !v.is_empty())
425425
}
426426

427427
let sku_preferred = match website_sku {

0 commit comments

Comments
 (0)