diff options
-rw-r--r-- | plugins/scalafmt/Scalafmt.scala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/scalafmt/Scalafmt.scala b/plugins/scalafmt/Scalafmt.scala index e3c3c3e..5f4e054 100644 --- a/plugins/scalafmt/Scalafmt.scala +++ b/plugins/scalafmt/Scalafmt.scala @@ -61,8 +61,9 @@ object Scalafmt { write(tmpPath, formatted.getBytes) move(tmpPath, path, StandardCopyOption.REPLACE_EXISTING) Some(1) + } else { + Some(0) } - Some(0) case Formatted.Failure(e) => System.err.println(s"Scalafmt failed for $path\nCause: $e\n") None |