Reputation: 31550
Right now I'm doing this:
// Returns a string that needs to be manipulated
def str = callSomeFunc arg1:'sdfsdf', arg2:'blah', arg3:'sdfs'
str = str.trim()
Because this doesn't work:
def str = (callSomeFunc arg1:'sdfsdf', arg2:'blah', arg3:'sdfs').trim()
Upvotes: 1
Views: 96