Skip to content

Commit

Permalink
Merge pull request #8614 from koic/use_cop_base_api_for_lint_top_leve…
Browse files Browse the repository at this point in the history
…l_return_with_argument

Use `Cop::Base` API for `Lint/TopLevelReturnWithArgument`
  • Loading branch information
koic committed Aug 28, 2020
2 parents ed864d9 + d22b72b commit 0ecc72e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rubocop/cop/lint/top_level_return_with_argument.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module Lint
# return 1 # 1 is always ignored.
#
# @api private
class TopLevelReturnWithArgument < Cop
class TopLevelReturnWithArgument < Base
# This cop works by validating the ancestors of the return node. A
# top-level return node's ancestors should not be of block, def, or
# defs type.
Expand Down

0 comments on commit 0ecc72e

Please sign in to comment.