You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[warn] /Users/(..)/Constraint.scala:189:9: parameter value endDate in value $anonfun is never used
[warn] endDate ← Checks.getDateTime(data, end, endFormat)
[warn] ^
[warn] one warning found
code:
defcheck(data: JsObject)(implicitfailures: FailureBuffer):Unit= {
for {
beginDate ←Checks.getDateTime(data, start, startFormat)
endDate ←Checks.getDateTime(data, end, endFormat)
if beginDate.isAfter(endDate)
} yieldChecks.failWith(failure)
}
PS: Checks.getDateTime returns Option[DateTime]
scalac option -Ywarn-unused:params.
The text was updated successfully, but these errors were encountered:
Hello, in 2.12.7, this warning appear:
code:
PS:
Checks.getDateTime
returnsOption[DateTime]
scalac option
-Ywarn-unused:params
.The text was updated successfully, but these errors were encountered: