summaryrefslogtreecommitdiff
path: root/src/Command/JobId.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Command/JobId.hs')
-rw-r--r--src/Command/JobId.hs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/Command/JobId.hs b/src/Command/JobId.hs
index b349ebe..173f543 100644
--- a/src/Command/JobId.hs
+++ b/src/Command/JobId.hs
@@ -5,7 +5,6 @@ module Command.JobId (
import Control.Monad
import Control.Monad.IO.Class
-import Data.Bifunctor
import Data.Text (Text)
import Data.Text qualified as T
@@ -53,8 +52,7 @@ cmdJobId :: JobIdCommand -> CommandExec ()
cmdJobId (JobIdCommand JobIdOptions {..} ref) = do
einput <- getEvalInput
out <- getOutput
- [ JobId ids ] <- either tfail (return . map jobId) =<<
- return . either (Left . textEvalError) (first T.pack . jobsetJobsEither) =<<
+ JobId ids <- either (tfail . textEvalError) (return . jobId) =<<
liftIO (runEval (evalJobReference ref) einput)
outputMessage out $ textJobId $ JobId ids