Skip to content

Mysql::ResultBase: Add empty? method

Untested. But should be a simple change? My intention is to prevent an issue I have with Rubocop.

I ran into an issue where the Rubocop Style/ZeroLengthPredicate rule tried to autocorrect result.size > 0 conditional statements to use result.empty?. This broke my code, as empty? is not a valid method.

Merge request reports

Loading