Skip to content

Commit

Permalink
Use if/else for readability instead of ?
Browse files Browse the repository at this point in the history
  • Loading branch information
paracycle committed Jan 29, 2025
1 parent 50487a0 commit aa1a48f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/ruby_lsp/tapioca/run_gem_rbi_check.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ def initialize(project_path)
def run
return log_message("Not a git repository") unless git_repo?

lockfile_changed? ? generate_gem_rbis : cleanup_orphaned_rbis
if lockfile_changed?
generate_gem_rbis
else
cleanup_orphaned_rbis
end
end

private
Expand Down

0 comments on commit aa1a48f

Please sign in to comment.