Skip to content

Commit

Permalink
Clear Stan suggestion; use fromMaybe mempty not fold
Browse files Browse the repository at this point in the history
  • Loading branch information
mpilgrem committed Oct 20, 2023
1 parent 107d205 commit 7ce7009
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions .stan.toml
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,6 @@
scope = "all"
type = "Exclude"

# Anti-pattern: Foldable methods on possibly error-prone structures
[[check]]
id = "STAN-0207"
scope = "all"
type = "Exclude"

# Anti-pattern: Slow 'length' for Text
# On Windows
[[check]]
Expand Down
2 changes: 1 addition & 1 deletion src/Stack/Build/Execute.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1554,7 +1554,7 @@ withSingleContext ActionContext {..} ee@ExecuteEnv {..} task@Task {..} allDeps m
(sinkWithTimestamps prefixWithTimestamps h)
(sinkWithTimestamps prefixWithTimestamps h)
OTConsole mprefix ->
let prefix = fold mprefix
let prefix = fromMaybe mempty mprefix
in void $ sinkProcessStderrStdout
(toFilePath exeName)
fullArgs
Expand Down

0 comments on commit 7ce7009

Please sign in to comment.