Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Sep 9, 2024
1 parent 95bf88f commit ff8f383
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ func WelcomeMessage(customer string) string {

// AddBorder adds a border to a welcome message.
func AddBorder(welcomeMsg string, numStarsPerLine int) string {
border := strings.Repeat("*", numStarsPerLine)
border := strings.Repeat("*", numStarsPerLine)

return border + "\n" + welcomeMsg + "\n" + border
}

// CleanupMessage cleans up an old marketing message.
func CleanupMessage(oldMsg string) string {
return strings.TrimSpace(strings.ReplaceAll(oldMsg, "*", ""))
}
return strings.TrimSpace(strings.ReplaceAll(oldMsg, "*", ""))
}
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,4 @@ func TestCleanupMessage(t *testing.T) {
}
})
}
}
}

0 comments on commit ff8f383

Please sign in to comment.