mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
Revert to nil
if Process.find_executable
fails
This commit is contained in:
parent
e0fa8bbcc2
commit
a836e2c8d0
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