Skip to content

Commit

Permalink
simplify empty map type
Browse files Browse the repository at this point in the history
  • Loading branch information
yanns committed Jul 22, 2024
1 parent 2fb639d commit 305bb0b
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package sangria.execution

import sangria.ast.{AstVisitor, InputDocument, VariableDefinition}
import sangria.ast
import sangria.execution
import sangria.marshalling.{FromInput, InputUnmarshaller}
import sangria.renderer.SchemaRenderer
import sangria.schema._
Expand Down Expand Up @@ -35,12 +34,7 @@ case class InputDocumentMaterializer[Vars](
case Failure(e) =>
// return validation errors without variables first if variables is what failed
val violations =
QueryValidator.default.validateInputDocument(
schema,
document,
inputType,
Map.empty[String, execution.VariableValue]
)
QueryValidator.default.validateInputDocument(schema, document, inputType, Map.empty)

if (violations.nonEmpty)
Failure(InputDocumentMaterializationError(violations, ExceptionHandler.empty))
Expand Down

0 comments on commit 305bb0b

Please sign in to comment.