File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
Azure.Provisioning.Storage/tests
Azure.Provisioning/src/Expressions Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -270,11 +270,12 @@ await test.Define(
270270 infra . Add ( new ProvisioningOutput ( "blobs_endpoint" , typeof ( string ) ) { Value = storage . PrimaryEndpoints . Value ! . BlobUri } ) ;
271271
272272 // Manually compute the public Azure endpoint
273+ string ? nothing = null ;
273274 BicepValue < string > computed =
274275 new BicepStringBuilder ( )
275276 . Append ( "https://" )
276277 . Append ( $ "{ storage . Name } ")
277- . Append ( ".blob.core.windows.net" ) ;
278+ . Append ( $ ".blob.core.windows.net{ nothing } ") ;
278279 infra . Add ( new ProvisioningOutput ( "computed_endpoint" , typeof ( string ) ) { Value = computed } ) ;
279280
280281 return infra ;
Original file line number Diff line number Diff line change @@ -102,10 +102,11 @@ public void AppendFormatted<T>(T t)
102102 }
103103 else
104104 {
105- _expressions . Add (
106- t is null ?
107- BicepSyntax . Null ( ) :
108- BicepSyntax . Value ( t . ToString ( ) ?? "" ) ) ;
105+ string ? s = t ? . ToString ( ) ;
106+ if ( s is not null )
107+ {
108+ _expressions . Add ( BicepSyntax . Value ( s ) ) ;
109+ }
109110 }
110111 }
111112
You can’t perform that action at this time.
0 commit comments