Skip to content

Commit 604c067

Browse files
smarterDuhemm
andcommitted
Improve readability
Co-Authored-By: Duhemm <[email protected]>
1 parent a94de7f commit 604c067

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

language-server/src/dotty/tools/languageserver/Signatures.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ object Signatures {
1919
case Apply(fun, params) :: _ =>
2020
val alreadyAppliedCount = Signatures.countParams(fun)
2121
val paramIndex = params.indexWhere(_.pos.contains(pos)) match {
22-
case -1 => (params.length - 1 max 0) + alreadyAppliedCount
22+
case -1 => ((params.length - 1) max 0) + alreadyAppliedCount
2323
case n => n + alreadyAppliedCount
2424
}
2525

0 commit comments

Comments
 (0)