Project

General

Profile

Refactor #31086

Use __dir__ instead of File.dirname(__FILE__)

Added by Ewoud Kohl van Wijngaarden 11 months ago. Updated 2 months ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

This is equivalent, but shorter and easier to read.

Associated revisions

Revision 9e94486a (diff)
Added by Ewoud Kohl van Wijngaarden 11 months ago

Fixes #31086 - Use dir when possible

dir is equal to File.dirname(FILE) and easier to read.

History

#1 Updated by The Foreman Bot 11 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 11 months ago

  • Fixed in Releases 2.3.0 added

#3 Updated by Ewoud Kohl van Wijngaarden 11 months ago

  • Status changed from Ready For Testing to Closed

#4 Updated by The Foreman Bot 2 months ago

  • Pull request https://github.com/theforeman/smart-proxy/pull/792 added

#5 Updated by Ewoud Kohl van Wijngaarden 2 months ago

  • Pull request deleted (https://github.com/theforeman/smart-proxy/pull/792)

Also available in: Atom PDF