Skip to content

Commit 1a31d18

Browse files
committed
scalafmt
1 parent 690483d commit 1a31d18

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

sjsonnet/src/sjsonnet/Evaluator.scala

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -680,16 +680,13 @@ class Evaluator(
680680
visitExpr(k) match {
681681
case Val.Str(_, k1) => k1
682682
case Val.Null(_) => null
683-
case x => fieldNameTypeError(x, pos)
683+
case x => fieldNameTypeError(x, pos)
684684
}
685685
}
686686
}
687687

688688
private def fieldNameTypeError(fieldName: Val, pos: Position): Nothing = {
689-
Error.fail(
690-
s"Field name must be string or null, not ${fieldName.prettyName}",
691-
pos
692-
)
689+
Error.fail(s"Field name must be string or null, not ${fieldName.prettyName}", pos)
693690
}
694691

695692
def visitMethod(rhs: Expr, params: Params, outerPos: Position)(implicit
@@ -859,7 +856,7 @@ class Evaluator(
859856
Error.fail(s"Duplicate key ${k} in evaluated object comprehension.", e.pos);
860857
}
861858
case Val.Null(_) => // do nothing
862-
case x => fieldNameTypeError(x, e.pos)
859+
case x => fieldNameTypeError(x, e.pos)
863860
}
864861
}
865862
val valueCache = if (sup == null) {

0 commit comments

Comments
 (0)