Skip to content

Commit 5c3af96

Browse files
committed
scalafmt
1 parent a579e6e commit 5c3af96

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

src/main/scala/org/polystat/cli/Far.scala

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff 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

src/main/scala/org/polystat/cli/util/InputUtils.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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

src/test/scala/org/polystat/HoconConfigTests.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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]) =

0 commit comments

Comments
 (0)