Skip to content

Commit

Permalink
Removed code repeat in method
Browse files Browse the repository at this point in the history
  • Loading branch information
Bremer Jonathan committed Apr 7, 2017
1 parent b518520 commit 5fb8bfa
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,7 @@ public QueueReference build(boolean crumbFlag) throws IOException {
* @throws IOException in case of an error.
*/
public QueueReference build(Map<String, String> params) throws IOException {
String qs = join(Collections2.transform(params.entrySet(), new MapEntryToQueryStringPair()), "&");
ExtractHeader location = client.post(url + "buildWithParameters?" + qs, null, ExtractHeader.class, false);
return new QueueReference(location.getLocation());
return build(params, false);
}

/**
Expand Down

0 comments on commit 5fb8bfa

Please sign in to comment.