Skip to content

Commit

Permalink
Use the comment syntax to ignore some hlint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Konstantinos Sideris committed Aug 28, 2021
1 parent 8d27124 commit 6c5028f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Haka/Db/Statements.hs
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ checkTagOwner = Statement query params (D.rowMaybe ((D.column . D.nonNullable) D
LIMIT 1;
|]

{-# ANN module "HLint: ignore Reduce duplication" #-}
{- HLINT ignore "Reduce duplication" -}
getTags :: Statement (Text, Text) (V.Vector Text)
getTags = Statement query params result True
where
Expand Down
2 changes: 1 addition & 1 deletion src/Haka/Handlers/Projects.hs
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ setTagsHandler project (Just token) tagsPayload = do

return NoContent

{-# ANN module "HLint: ignore Reduce duplication" #-}
{- HLINT ignore "Reduce duplication" -}
projectStatsHandler ::
Text ->
Maybe UTCTime ->
Expand Down

0 comments on commit 6c5028f

Please sign in to comment.