minor-bug-fixes #177
@ -1391,10 +1391,14 @@ func (h *Handlers) GetProfileInfo(ctx context.Context, sym string, input []byte)
|
|||||||
// Construct the full name
|
// Construct the full name
|
||||||
name := defaultValue
|
name := defaultValue
|
||||||
if familyName != defaultValue {
|
if familyName != defaultValue {
|
||||||
if firstName == defaultValue {
|
if firstName != defaultValue {
|
||||||
name = familyName
|
|
||||||
} else {
|
|
||||||
name = firstName + " " + familyName
|
name = firstName + " " + familyName
|
||||||
|
} else {
|
||||||
|
name = familyName
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if firstName != defaultValue {
|
||||||
|
name = firstName
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Alfred-mk marked this conversation as resolved
Outdated
|
|||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user
Probably nicer in a separate function "constructName"?
This has been added in ..utils/name.go