Use File.exist over deprecated File.exists

This commit is contained in:
Kimmo Brunfeldt
2023-01-12 08:43:16 +02:00
parent 0e21e89f3a
commit ae2dd1a559

View File

@@ -88,7 +88,7 @@ puts "%s#%s On branch: %s#{@branch}#{difference}%s %s| [%s*%s]%s => $#{ENV["gi
]
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