aboutsummaryrefslogtreecommitdiff
path: root/Command/Whereis.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2017-11-28 14:40:26 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2017-11-28 15:14:16 -0400
commit699611cde5cda8b2f2d83a6d6ac9c1e575b74f51 (patch)
treeb502247490779aca8068684a3be42791050eff7b /Command/Whereis.hs
parentbf5de3a6f3d50028f7ac47c6cde759a6f5110b08 (diff)
showStart variant for when there's no worktree file
Clean up some uses of showStart with "" for the file, or in some cases, a non-filename description string. That would generate bad json, although none of the commands doing that supported --json. Using "" for the file resulted in output like "foo rest"; now the extra space is eliminated. This commit was sponsored by Fernando Jimenez on Patreon.
Diffstat (limited to 'Command/Whereis.hs')
-rw-r--r--Command/Whereis.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Command/Whereis.hs b/Command/Whereis.hs
index c5543bc66..295d11994 100644
--- a/Command/Whereis.hs
+++ b/Command/Whereis.hs
@@ -53,7 +53,7 @@ start remotemap file key = startKeys remotemap key (mkActionItem afile)
startKeys :: M.Map UUID Remote -> Key -> ActionItem -> CommandStart
startKeys remotemap key ai = do
- showStart' "whereis" key ai
+ showStartKey "whereis" key ai
next $ perform remotemap key
perform :: M.Map UUID Remote -> Key -> CommandPerform