forked from urdt/ussd
formatted code
This commit is contained in:
parent
ba430a5849
commit
d40a4a171f
@ -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
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user