Skip to content

Commit

Permalink
fixup! feat: Trim leading and trailing whitespace from test group names
Browse files Browse the repository at this point in the history
Co-authored-by: Eddie Maldonado <[email protected]>
  • Loading branch information
joshlarson and lemald authored Nov 30, 2023
1 parent 857c449 commit 2b23c97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/skate/settings/test_group.ex
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ defmodule Skate.Settings.TestGroup do
@spec create(String.t()) :: {:ok, t()} | {:error, Ecto.Changeset.t()}
def create(name) do
%DbTestGroup{}
|> DbTestGroup.changeset(%{name: name |> String.trim()})
|> DbTestGroup.changeset(%{name: String.trim(name)})
|> Skate.Repo.insert()
|> case do
{:ok, new_test_group} ->
Expand Down

0 comments on commit 2b23c97

Please sign in to comment.