File tree Expand file tree Collapse file tree 3 files changed +10
-7
lines changed
main/scala/org/polystat/cli Expand file tree Collapse file tree 3 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -51,11 +51,12 @@ object Far:
5151 ): IO [OdinAnalysisResult ] =
5252 val codeFileNameNoExt : String = pathToCode.filenameNoExt
5353 val createPathToXml : IO [JPath ] =
54- (pathToTmpDir / " xmir" ).unsafeToDirectory.createDirIfDoesntExist.map(tmp =>
55- pathToCode
56- .mount(to = tmp, relativelyTo = pathToSrcRoot)
57- .replaceExt(newExt = " .xml" )
58- .toNioPath
54+ (pathToTmpDir / " xmir" ).unsafeToDirectory.createDirIfDoesntExist.map(
55+ tmp =>
56+ pathToCode
57+ .mount(to = tmp, relativelyTo = pathToSrcRoot)
58+ .replaceExt(newExt = " .xml" )
59+ .toNioPath
5960 )
6061
6162 for
Original file line number Diff line number Diff line change @@ -66,7 +66,9 @@ object InputUtils:
6666 case Input .FromDirectory (path) =>
6767 readCodeFromDir(ext = ext, dir = path)
6868 case Input .FromStdin =>
69- readCodeFromStdin.map(code => (Path (" stdin" + ext).unsafeToFile, " \n " + code + " \n " ))
69+ readCodeFromStdin.map(code =>
70+ (Path (" stdin" + ext).unsafeToFile, " \n " + code + " \n " )
71+ )
7072
7173 def readConfigFromFile (path : File ): IO [PolystatUsage .Analyze ] =
7274 HoconConfig (path).config.load
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ class HoconConfigTests extends munit.FunSuite:
5656 label = " empty" ,
5757 cfg = """ """ .stripMargin,
5858 expected = None ,
59- ),
59+ )
6060 )
6161
6262 private def runTestcases (tests : List [ConfigTestCase ]) =
You can’t perform that action at this time.
0 commit comments