Project

General

Profile

Actions

Patch #36358

closed

Use File.exist? instead of deprecated File.exists?

Added by Go MAEDA almost 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Code cleanup/refactoring
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

you will see a lot of deprecation warnings when running tests with Ruby 3.0 or later.

/path/to/redmine/lib/redmine/scm/adapters/abstract_adapter.rb:219: warning: File.exists? is deprecated; use File.exist? instead

The attached patch replaces all File.exists? with File.exist?.


Files

file-exists.diff (9.65 KB) file-exists.diff Go MAEDA, 2021-12-26 13:03
Actions

Also available in: Atom PDF