Skip to content

Commit e58e649

Browse files
committed
Fix lint error
1 parent 6bd543d commit e58e649

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/graphql/schema.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1281,10 +1281,10 @@ def validate_timeout(new_validate_timeout = nil)
12811281
# @return [Array<GraphQL::StaticValidation::Error >]
12821282
def validate(string_or_document, rules: nil, context: nil)
12831283
doc = if string_or_document.is_a?(String)
1284-
GraphQL.parse(string_or_document)
1285-
else
1286-
string_or_document
1287-
end
1284+
GraphQL.parse(string_or_document)
1285+
else
1286+
string_or_document
1287+
end
12881288
query = GraphQL::Query.new(self, document: doc, context: context)
12891289
validator_opts = { schema: self }
12901290
rules && (validator_opts[:rules] = rules)

0 commit comments

Comments
 (0)