Skip to content

Commit

Permalink
style: use super short syntax and oneline signature
Browse files Browse the repository at this point in the history
  • Loading branch information
snutij committed Oct 3, 2024
1 parent 0220067 commit 5c46def
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/ruby_indexer/lib/ruby_indexer/entry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ class GlobalVariable < Entry
).void
end
def initialize(name, file_path, location, comments, encoding)
super(name, file_path, location, comments, encoding)
super
end
end

Expand Down
4 changes: 1 addition & 3 deletions lib/ruby_indexer/lib/ruby_indexer/rbs_indexer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -273,9 +273,7 @@ def handle_constant(declaration, nesting, file_path)
))
end

sig do
params(declaration: RBS::AST::Declarations::Global, pathname: Pathname).void
end
sig { params(declaration: RBS::AST::Declarations::Global, pathname: Pathname).void }
def handle_global_variable(declaration, pathname)
name = declaration.name.to_s
file_path = pathname.to_s
Expand Down

0 comments on commit 5c46def

Please sign in to comment.