lib/mistral_client/execution.rb in mistral_client-2.0.0 vs lib/mistral_client/execution.rb in mistral_client-3.0.0

- old
+ new

@@ -33,10 +33,10 @@ def patch(description: nil, state: nil, env: nil) body = {} body[:description] = description unless description.nil? body[:state] = state if state - body[:params] = { env: env } if env + body[:params] = { env: } if env return if body.empty? resp = @server.put("#{PATH}/#{@id}", body.to_json, json: true) ivars_from_response(resp)