mirror of
https://github.com/apple/pkl.git
synced 2026-01-11 22:30:54 +01:00
Compare commits
1 Commits
0.30.0
...
srueg/run-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8367ac92b2 |
@@ -32,8 +32,8 @@ class CliFormatterApply(cliBaseOptions: CliBaseOptions, path: Path, private val
|
||||
val contents = Files.readString(path)
|
||||
val (formatted, stat) = format(path, contents)
|
||||
status = if (status == 0) stat else status
|
||||
if (stat != 0) continue
|
||||
if (!silent && contents != formatted) {
|
||||
if (stat != 0 || contents == formatted) continue
|
||||
if (!silent) {
|
||||
consoleWriter.write(path.toAbsolutePath().toString())
|
||||
consoleWriter.appendLine()
|
||||
consoleWriter.flush()
|
||||
|
||||
Reference in New Issue
Block a user