Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
utdemir committed Dec 10, 2023
1 parent 54e7e3b commit 1d04ca7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/NixTree/App.hs
Original file line number Diff line number Diff line change
Expand Up @@ -463,8 +463,8 @@ renderSearchModal left right l =
B.txt left
B.<+> B.txt "|"
B.<+> B.txt right
B.<=> B.hBorder
B.<=> renderList Nothing True l
B.<=> B.hBorder
B.<=> renderList Nothing True l

showAndUpdateSearch :: Text -> Text -> AppEnv s -> AppEnv s
showAndUpdateSearch left right env@AppEnv {aeInvertedIndex} =
Expand Down
3 changes: 2 additions & 1 deletion src/NixTree/StorePath.hs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ getNixStore = do
args = ["--eval", "--expr", "(builtins.storeDir)", "--json"]
out <-
readProcessStdout_ (proc prog args)
<&> fmap mkNixStore . decode @FilePath
<&> fmap mkNixStore
. decode @FilePath
case out of
Nothing -> fail $ "Error interpreting output of: " ++ show (prog, args)
Just p -> return p
Expand Down

0 comments on commit 1d04ca7

Please sign in to comment.