Skip to content

Commit

Permalink
flatten -> trimmed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
kayra1 committed Aug 27, 2024
1 parent deb65f9 commit 0114f8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/api/handlers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -928,7 +928,7 @@ func prepareUserAccounts(url string, client *http.Client, adminToken, nonAdminTo
}
}

// Flatten removes all whitespace and newlines from a given string
// trimmed removes all whitespace and newlines from a given string
func trimmed(s string) string {
return strings.ReplaceAll(strings.TrimSpace(s), "\n", "\\n")
}

0 comments on commit 0114f8b

Please sign in to comment.