From fba229a9a90e077b60dad60b890015b650c1a24c Mon Sep 17 00:00:00 2001 From: Robert Attard Date: Sun, 28 Jan 2024 17:22:14 -0500 Subject: [PATCH] format --- src/glint/flag/constraint.gleam | 36 ++++++++++++++++----------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/src/glint/flag/constraint.gleam b/src/glint/flag/constraint.gleam index 0130d7d..91e370a 100644 --- a/src/glint/flag/constraint.gleam +++ b/src/glint/flag/constraint.gleam @@ -20,14 +20,14 @@ pub fn one_of(allowed: List(a)) -> Constraint(a) { False -> snag.error( "invalid value '" - <> string.inspect(val) - <> "', must be one of: [" - <> { - allowed - |> list.map(fn(a) { "'" <> string.inspect(a) <> "'" }) - |> string.join(", ") - } - <> "]", + <> string.inspect(val) + <> "', must be one of: [" + <> { + allowed + |> list.map(fn(a) { "'" <> string.inspect(a) <> "'" }) + |> string.join(", ") + } + <> "]", ) } } @@ -43,16 +43,16 @@ pub fn none_of(disallowed: List(a)) -> Constraint(a) { True -> snag.error( "invalid value '" - <> string.inspect(val) - <> "', must not be one of: [" - <> { - { - disallowed - |> list.map(fn(a) { "'" <> string.inspect(a) <> "'" }) - |> string.join(", ") - <> "]" - } - }, + <> string.inspect(val) + <> "', must not be one of: [" + <> { + { + disallowed + |> list.map(fn(a) { "'" <> string.inspect(a) <> "'" }) + |> string.join(", ") + <> "]" + } + }, ) } }