diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2017-03-01 00:53:04 +0000 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2017-03-01 00:53:04 +0000 |
commit | 02633f3e5c58c93715bc574d30570a2a05b62f3d (patch) | |
tree | 224af669a3bde2258aa8ed9d6e335bdfa885afdc /plugins | |
parent | e8b0d49a9cf8eeb95e2e41555d12f43724e417f1 (diff) | |
download | cbt-02633f3e5c58c93715bc574d30570a2a05b62f3d.tar.gz cbt-02633f3e5c58c93715bc574d30570a2a05b62f3d.tar.bz2 cbt-02633f3e5c58c93715bc574d30570a2a05b62f3d.zip |
fix scalafmt not printing number of formatted files
Diffstat (limited to 'plugins')
-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 |