Skip to content

Commit 2708f13

Browse files
committed
Cleanup style
1 parent 344fcb0 commit 2708f13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/jsonapi/response_document.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def initialize(options = {})
1717
end
1818

1919
def has_errors?
20-
@error_results.length > 0 || @global_errors.length > 0
20+
@error_results.length.positive? || @global_errors.length.positive?
2121
end
2222

2323
def add_result(result, operation)

0 commit comments

Comments
 (0)