Skip to content

Commit

Permalink
gh-2881 fetch schema inline builder change.
Browse files Browse the repository at this point in the history
  • Loading branch information
GCHQDev404 committed Feb 20, 2023
1 parent 6ba3332 commit 9ef3e70
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -363,10 +363,8 @@ public Schema getOriginalSchema() {
* @return schema
*/
public Schema getSchema(final Context context, final boolean getCompactSchema) {
final GetSchema.Builder getSchema = new GetSchema.Builder();
getSchema.compact(getCompactSchema);
try {
return execute(getSchema.build(), context);
return execute(new GetSchema.Builder().compact(getCompactSchema).build(), context);
} catch (final OperationException e) {
throw new GafferRuntimeException("Unable to execute GetSchema Operation", e);
}
Expand Down

0 comments on commit 9ef3e70

Please sign in to comment.