Formatting

pull/9657/head
Benedikt Werner 2021-08-26 04:57:17 +02:00
parent e5de1812d2
commit eb02f74923
No known key found for this signature in database
GPG Key ID: 1DBFF0F8E9E121EB
2 changed files with 3 additions and 4 deletions

View File

@ -18,7 +18,7 @@ object EvalCacheSelector {
.toList
// and sort the groups by multiPv, higher first
.sortBy(-_._1)
//keep only the best eval in each group
// keep only the best eval in each group
.flatMap {
import cats.implicits._
_._2.maximumByOption(ranking)

View File

@ -19,9 +19,8 @@ function localEvalInfo(ctrl: ParentCtrl, evs: NodeEvals): Array<VNode | string>
const ceval = ctrl.getCeval(),
trans = ctrl.trans;
if (!evs.client) {
if (!ceval.analysable) {
return ['Engine cannot analyze this position'];
}
if (!ceval.analysable) return ['Engine cannot analyze this position'];
const mb = ceval.downloadProgress() / 1024 / 1024;
return [
evs.server && ctrl.nextNodeBest()