lib/habitica_cli/api.rb in habitica_cli-0.1.0 vs lib/habitica_cli/api.rb in habitica_cli-0.1.1
- old
+ new
@@ -22,10 +22,10 @@
# generic handling for habitica responses
class HabiticaResponseMiddleware < Faraday::Middleware
def call(request_env)
@app.call(request_env).on_complete do |response_env|
- fail ApiError.new(response_env) unless response_env.success? # rubocop:disable Style/RaiseArgs, Style/LineLength
+ fail ApiError.new(response_env) unless response_env.success? # rubocop:disable Style/RaiseArgs, Metrics/LineLength
response_env
end
end
end