Bump rubocop from 1.66.1 to 1.71.2
Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.66.1 to 1.71.2. - [Release notes](https://github.com/rubocop/rubocop/releases) - [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md) - [Commits](https://github.com/rubocop/rubocop/compare/v1.66.1...v1.71.2) --- updated-dependencies: - dependency-name: rubocop dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Note: Fix SafeNavigation offense detected by RuboCop 1.67.0 Remove redundant condition that became unnecessary after updating RuboCop.
This commit is contained in:
@@ -101,7 +101,7 @@ class Legislation::AnnotationsController < Legislation::BaseController
|
||||
|
||||
def convert_ranges_parameters
|
||||
annotation = params[:legislation_annotation]
|
||||
if annotation && annotation[:ranges] && annotation[:ranges].is_a?(String)
|
||||
if annotation && annotation[:ranges]&.is_a?(String)
|
||||
params[:legislation_annotation][:ranges] = JSON.parse(annotation[:ranges])
|
||||
end
|
||||
rescue JSON::ParserError
|
||||
|
||||
Reference in New Issue
Block a user