Skip to content

Commit

Permalink
Use the same RestylerOverride construction
Browse files Browse the repository at this point in the history
  • Loading branch information
pbrisbin committed Nov 4, 2024
1 parent 7ce930d commit 9164fe6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
12 changes: 1 addition & 11 deletions src/Restyler/Config/Restyler.hs
Original file line number Diff line number Diff line change
Expand Up @@ -85,17 +85,7 @@ instance HasCodec RestylerOverride where
]

wildcard :: RestylerOverride
wildcard =
RestylerOverride
{ name = "*"
, enabled = Nothing
, image = Nothing
, command = Nothing
, arguments = Nothing
, include = Nothing
, interpreters = Nothing
, delimiters = Nothing
}
wildcard = restylerOverride "*"

restylerOverride :: Text -> RestylerOverride
restylerOverride name =
Expand Down
2 changes: 1 addition & 1 deletion test/Restyler/Test/Fixtures.hs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ someRestyler name =
}

wildcard :: RestylerOverride
wildcard = enabled "*"
wildcard = restylerOverride "*"

enabled :: Text -> RestylerOverride
enabled name = (restylerOverride name) {enabled = Just True}
Expand Down

0 comments on commit 9164fe6

Please sign in to comment.