Skip to content

Commit

Permalink
Merge pull request #323 from kimmobrunfeldt/master
Browse files Browse the repository at this point in the history
Use File.exist over deprecated File.exists
  • Loading branch information
ghthor authored Jan 13, 2023
2 parents 0e21e89 + ae2dd1a commit 3e59bc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/git/status_shortcuts.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
]

def has_modules?
@has_modules ||= File.exists?(File.join(@project_root, '.gitmodules'))
@has_modules ||= File.exist?(File.join(@project_root, '.gitmodules'))
end

# Index modification states
Expand Down

0 comments on commit 3e59bc9

Please sign in to comment.