Skip to content

Commit

Permalink
Use Cop::Base API for Lint/TopLevelReturnWithArgument
Browse files Browse the repository at this point in the history
Follow rubocop#7868, rubocop#8377, and rubocop#8395

This PR uses `Cop::Base` API for `Lint/TopLevelReturnWithArgument`.
  • Loading branch information
koic committed Aug 28, 2020
1 parent ed864d9 commit d22b72b
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
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 d22b72b

Please sign in to comment.