Skip to content

Commit

Permalink
fixed a goovy syntax issue with http posts callback closures
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsulpy committed Sep 11, 2015
1 parent 83bbaeb commit 621bcfa
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def createBucket() {

try {
// Create a bucket on Initial State so the data has a logical grouping
httpPostJson(bucketCreatePost) { resp =>
httpPostJson(bucketCreatePost) { resp ->
log.debug "bucket posted"
if (resp.status >= 400) {
log.error "bucket not created successfully"
Expand Down Expand Up @@ -353,7 +353,7 @@ def shipEvents() {

try {
// post the events to initial state
httpPostJson(eventPost) { resp =>
httpPostJson(eventPost) { resp ->
log.debug "shipped events and got ${resp.status}"
if (resp.status >= 400) {
log.error "shipping failed... ${resp.data}"
Expand Down

0 comments on commit 621bcfa

Please sign in to comment.