diff --git a/lib/oktakit/error.rb b/lib/oktakit/error.rb index 5ea9f4d..bdd69c7 100644 --- a/lib/oktakit/error.rb +++ b/lib/oktakit/error.rb @@ -48,12 +48,12 @@ def errors end end - private - def data @data ||= parse_data end + private + def parse_data body = @response[:body] return if body.empty?