We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 344fcb0 commit 2708f13Copy full SHA for 2708f13
lib/jsonapi/response_document.rb
@@ -17,7 +17,7 @@ def initialize(options = {})
17
end
18
19
def has_errors?
20
- @error_results.length > 0 || @global_errors.length > 0
+ @error_results.length.positive? || @global_errors.length.positive?
21
22
23
def add_result(result, operation)
0 commit comments