mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
Merge pull request #465 from crystal-ameba/fix-issue-464
Revert to `nil` in `Rule::Lint::Typos.BIN_PATH` if `Process.find_executable` fails
This commit is contained in:
commit
a42b218ca6
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ module Ameba::Rule::Lint
|
|||
|
||||
MSG = "Typo found: %s -> %s"
|
||||
|
||||
BIN_PATH = Process.find_executable("typos")
|
||||
BIN_PATH = Process.find_executable("typos") rescue nil
|
||||
|
||||
def bin_path : String?
|
||||
@bin_path || BIN_PATH
|
||||
|
|
Loading…
Reference in a new issue