Skip to content

Commit 3802296

Browse files
sampersandmatzbot
authored andcommitted
[ruby/optparse] Remove unneeded public
Removed public visibility from the candidate method. ruby/optparse@9a784a89a2
1 parent 6ace025 commit 3802296

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/optparse.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,6 @@ def candidate(key, icase = false, pat = nil, &_)
472472
Completion.candidate(key, icase, pat, &method(:each))
473473
end
474474

475-
public
476475
def complete(key, icase = false, pat = nil)
477476
candidates = candidate(key, icase, pat, &method(:each)).sort_by {|k, v, kn| kn.size}
478477
if candidates.size == 1

0 commit comments

Comments
 (0)