mirror of
https://github.com/apple/pkl.git
synced 2026-04-25 09:48:41 +02:00
Apply spotless formatting
This commit is contained in:
@@ -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) ->
|
||||||
|
|||||||
@@ -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 != "'")
|
||||||
|
|||||||
Reference in New Issue
Block a user