mirror of
https://github.com/ij-plugins/ijp-imagej-launcher.git
synced 2024-11-13 16:29:01 -08:00
Correct type, remove extra single quote character
This commit is contained in:
parent
8718c9310c
commit
60ad1b1816
1 changed files with 8 additions and 3 deletions
|
|
@ -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
|
||||
|
|
@ -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 =>
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue