From d40a4a171ff1bb84b7cc299e13f3b04836cdb9bd Mon Sep 17 00:00:00 2001 From: alfred-mk Date: Tue, 3 Dec 2024 14:12:47 +0300 Subject: [PATCH] formatted code --- internal/utils/name.go | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/internal/utils/name.go b/internal/utils/name.go index 4665d02..ea403d5 100644 --- a/internal/utils/name.go +++ b/internal/utils/name.go @@ -1,17 +1,17 @@ package utils func ConstructName(firstName, familyName, defaultValue string) string { - name := defaultValue - if familyName != defaultValue { - if firstName != defaultValue { - name = firstName + " " + familyName - } else { - name = familyName - } - } else { - if firstName != defaultValue { - name = firstName - } - } - return name -} \ No newline at end of file + name := defaultValue + if familyName != defaultValue { + if firstName != defaultValue { + name = firstName + " " + familyName + } else { + name = familyName + } + } else { + if firstName != defaultValue { + name = firstName + } + } + return name +}