Skip to content

Commit 7eb72cd

Browse files
committed
Fix standardrb failures
1 parent f86928b commit 7eb72cd

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

lib/graphiti/query.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,7 @@ def hash
4949
h[:page] = pagination
5050
if association?
5151
resource_type = @resource.class.type
52-
h[:extra_fields] = {
53-
resource_type => extra_fields[resource_type]
54-
} if extra_fields.key?(resource_type)
52+
h[:extra_fields] = {resource_type => extra_fields[resource_type]} if extra_fields.key?(resource_type)
5553
else
5654
h[:fields] = fields
5755
h[:extra_fields] = extra_fields

spec/query_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@
747747
extra_fields: {positions: [:baz]},
748748
include: {
749749
department: {
750-
extra_fields: {departments: [:bax] }
750+
extra_fields: {departments: [:bax]}
751751
}
752752
}
753753
}

0 commit comments

Comments
 (0)