Skip to content

Commit

Permalink
autoformat
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Sep 14, 2019
1 parent 4488b78 commit 7a8db4d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
6 changes: 6 additions & 0 deletions build.sbt
@@ -1,3 +1,5 @@
import scalariform.formatter.preferences._

name := "lila-ws"

version := "1.0"
Expand Down Expand Up @@ -40,3 +42,7 @@ sources in (Compile, doc) := Seq.empty
publishArtifact in (Compile, packageDoc) := false

enablePlugins(JavaAppPackaging)

scalariformPreferences := scalariformPreferences.value
.setPreference(DanglingCloseParenthesis, Force)
.setPreference(DoubleIndentConstructorArguments, true)
1 change: 1 addition & 0 deletions project/plugins.sbt
@@ -1,2 +1,3 @@
addSbtPlugin("io.spray" % "sbt-revolver" % "0.9.1")
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.4.1")
addSbtPlugin("org.scalariform" % "sbt-scalariform" % "1.8.3")
6 changes: 2 additions & 4 deletions src/main/scala/util/RateLimit.scala
Expand Up @@ -20,13 +20,11 @@ final class RateLimit(
if (credits > 0) {
credits -= 1
true
}
else if (clearAt < nowMillis) {
} else if (clearAt < nowMillis) {
credits = maxCredits
clearAt = makeClearAt
true
}
else {
} else {
if (!logged) {
logged = true
logger.info(s"$name MSG: $msg")
Expand Down

0 comments on commit 7a8db4d

Please sign in to comment.