lib/pbmenv/services/use_version_service.rb in pbmenv-0.1.11 vs lib/pbmenv/services/use_version_service.rb in pbmenv-0.1.12
- old
+ new
@@ -18,10 +18,10 @@
private
def throw_error_if_has_not_version
version_pathname = VersionPathname.new(version)
- if !File.exists?(version_pathname.version_path_without_v) && !File.exists?(version_pathname.version_path)
+ if !File.exist?(version_pathname.version_path_without_v) && !File.exist?(version_pathname.version_path)
raise UseVersionService::VersionNotFoundError
end
end
def relink_current_path