Skip to content

Commit fdfc446

Browse files
committed
fix: reorder URL string construction for improved readability
1 parent 68378cb commit fdfc446

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

Project/Sources/Classes/URL.4dm

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -181,17 +181,17 @@ Function toString() : Text
181181

182182
// Convert the URL object to a string representation
183183
var $URL : Text:=""
184-
If (Length(This.host)>0)
185-
If (Length(This.scheme)>0)
186-
$URL+=This.scheme+"://"
187-
End if
188-
If (Length(This.username)>0)
189-
$URL+=This.username
190-
If (Length(This.password)>0)
191-
$URL+=":"+This.password
192-
End if
193-
$URL+="@"
184+
If (Length(This.scheme)>0)
185+
$URL+=This.scheme+"://"
186+
End if
187+
If (Length(This.username)>0)
188+
$URL+=This.username
189+
If (Length(This.password)>0)
190+
$URL+=":"+This.password
194191
End if
192+
$URL+="@"
193+
End if
194+
If (Length(This.host)>0)
195195
$URL+=This.host
196196
End if
197197
If (This._port>0)

0 commit comments

Comments
 (0)