File tree 1 file changed +7
-14
lines changed
1 file changed +7
-14
lines changed Original file line number Diff line number Diff line change @@ -39,12 +39,8 @@ func (e *executionStepResult) MarshalJSON() ([]byte, error) {
39
39
j := toMarshal {
40
40
Executed : e .executed ,
41
41
TimeTaken : e .timeTaken .String (),
42
+ Error : e .error ,
42
43
}
43
-
44
- if e .error != nil {
45
- j .Error = e .error
46
- }
47
-
48
44
return json .Marshal (& j )
49
45
}
50
46
@@ -62,15 +58,12 @@ func (s *QueryPlanStep) MarshalJSON() ([]byte, error) {
62
58
Then []* QueryPlanStep
63
59
}
64
60
j := toMarshal {
65
- ServiceURL : s .ServiceURL ,
66
- ParentType : s .ParentType ,
67
- SelectionSet : formatSelectionSetSingleLine (ctx , nil , s .SelectionSet ),
68
- InsertionPoint : s .InsertionPoint ,
69
- Then : s .Then ,
70
- }
71
-
72
- if s .executionResult != nil {
73
- j .ExecutionStepResult = s .executionResult
61
+ ServiceURL : s .ServiceURL ,
62
+ ParentType : s .ParentType ,
63
+ SelectionSet : formatSelectionSetSingleLine (ctx , nil , s .SelectionSet ),
64
+ InsertionPoint : s .InsertionPoint ,
65
+ Then : s .Then ,
66
+ ExecutionStepResult : s .executionResult ,
74
67
}
75
68
76
69
return json .Marshal (& j )
You can’t perform that action at this time.
0 commit comments