formatted code

This commit is contained in:
Alfred Kamanda 2024-12-03 14:12:47 +03:00
parent ba430a5849
commit d40a4a171f
Signed by untrusted user: Alfred-mk
GPG Key ID: 7EA3D01708908703

View File

@ -1,17 +1,17 @@
package utils package utils
func ConstructName(firstName, familyName, defaultValue string) string { func ConstructName(firstName, familyName, defaultValue string) string {
name := defaultValue name := defaultValue
if familyName != defaultValue { if familyName != defaultValue {
if firstName != defaultValue { if firstName != defaultValue {
name = firstName + " " + familyName name = firstName + " " + familyName
} else { } else {
name = familyName name = familyName
} }
} else { } else {
if firstName != defaultValue { if firstName != defaultValue {
name = firstName name = firstName
} }
} }
return name return name
} }