Reimplementing #8890 (lib/const: Simplify + cleanup) (#8901)

* lib/const: Simplify + cleanup

* Fix nil issue

* Update const.rb

* Always convert result to boolean

* Always convert result to boolean

* Use File.join to prevent duplicate slashes

* rubocop: Disable `Lint/RedundantSafeNavigation` rule

* ruby_rubocop: Update checksum

* Fix logic

* Change `CREW_DLL_PREFIX` to `CREW_WINE_PREFIX`

* Use `&&` to concatenate commands

* Update const.rb

* Remove redundant `nil`

* Bump version

* Align + more cleanup

* Don't use ENV.fetch when default value is not needed

---------

Co-authored-by: Satadru Pramanik, DO, MPH, MEng <satadru@gmail.com>
This commit is contained in:
SupeChicken666
2023-11-08 23:24:46 +08:00
committed by GitHub
parent 2b946f5561
commit 9f77502974
6 changed files with 84 additions and 130 deletions

View File

@@ -105,6 +105,9 @@ Lint/ShadowingOuterLocalVariable:
Lint/SuppressedException:
Enabled: false
Lint/RedundantSafeNavigation:
Enabled: false
Layout/LineLength:
AllowedPatterns:
- '#'