Skip to content

Commit

Permalink
Correct type, remove extra single quote character
Browse files Browse the repository at this point in the history
  • Loading branch information
jpsacha committed Jun 5, 2023
1 parent 8718c93 commit 60ad1b1
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/main/scala/ij_plugins/imagej_launcher/IJDir.scala
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) 2000-2023 Jarek Sacha. All Rights Reserved.
* Author's e-mail: jpsacha at gmail.com
*/

package ij_plugins.imagej_launcher

import ij_plugins.imagej_launcher.Main.Config
Expand All @@ -16,9 +21,9 @@ object IJDir:

config.ijDir match
case Some(d) =>
logger.debug(s" Considering provided ij-dir: '$d''")
logger.debug(s" Considering provided ij-dir: '$d'")
asPath(d.getPath).flatMap: p =>
logger.debug(s" '$p''")
logger.debug(s" '$p'")
if isIJDir(p) then Right(p)
else Left(s"ij-dir is not an ImageJ directory [$p]")
case None =>
Expand Down Expand Up @@ -53,6 +58,6 @@ object IJDir:
else
FilePath(filePath) match
case p: Path => Right(p)
case _ => Left(s"Not an absolute path: '$filePath''")
case _ => Left(s"Not an absolute path: '$filePath'")

end IJDir

0 comments on commit 60ad1b1

Please sign in to comment.