Apply spotless formatting

This commit is contained in:
Dan Chao
2025-11-03 12:01:35 -08:00
committed by Daniel Chao
parent 4d70baba86
commit 4c13952b64
2 changed files with 4 additions and 2 deletions

View File

@@ -200,7 +200,8 @@ class Version {
else if (preRelease == other.preRelease) else if (preRelease == other.preRelease)
false false
else else
let (result = let (
result =
preReleaseIdentifiers preReleaseIdentifiers
.zip(other.preReleaseIdentifiers) .zip(other.preReleaseIdentifiers)
.fold(null, (result, next) -> .fold(null, (result, next) ->

View File

@@ -22,7 +22,8 @@ module pkl.shell
/// ///
/// Also handles single quotes occurring within [str]. /// Also handles single quotes occurring within [str].
function escapeWithSingleQuotes(str: String): String = function escapeWithSingleQuotes(str: String): String =
let (processChar = (acc, ch) -> let (
processChar = (acc, ch) ->
if (acc.isEmpty) if (acc.isEmpty)
List(List(ch)) List(List(ch))
else if (acc.last.last != "'" && ch != "'") else if (acc.last.last != "'" && ch != "'")