minor-bug-fixes #177

Merged
lash merged 26 commits from minor-bug-fixes into master 2024-12-03 18:18:23 +01:00
Showing only changes of commit 00c0445eed - Show all commits

View File

@ -1391,10 +1391,14 @@ func (h *Handlers) GetProfileInfo(ctx context.Context, sym string, input []byte)
// Construct the full name
name := defaultValue
if familyName != defaultValue {
if firstName == defaultValue {
name = familyName
} else {
if firstName != defaultValue {
name = firstName + " " + familyName
} else {
name = familyName
}
} else {
if firstName != defaultValue {
name = firstName
}
}
Alfred-mk marked this conversation as resolved Outdated
Outdated
Review

Probably nicer in a separate function "constructName"?

Probably nicer in a separate function "constructName"?

This has been added in ..utils/name.go

This has been added in ..utils/name.go