Refactor #31086
Use __dir__ instead of File.dirname(__FILE__)
Pull request:
Fixed in Releases:
Found in Releases:
Description
This is equivalent, but shorter and easier to read.
Associated revisions
History
#1
Updated by The Foreman Bot 6 months ago
- Assignee set to Ewoud Kohl van Wijngaarden
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/smart-proxy/pull/776 added
#2
Updated by The Foreman Bot 6 months ago
- Fixed in Releases 2.3.0 added
#3
Updated by Ewoud Kohl van Wijngaarden 6 months ago
- Status changed from Ready For Testing to Closed
Applied in changeset 9e94486a232f4eb1cb7e070ab833e9df9b07d118.
Fixes #31086 - Use dir when possible
dir is equal to File.dirname(FILE) and easier to read.