Skip to content

Commit

Permalink
Merge pull request #465 from crystal-ameba/fix-issue-464
Browse files Browse the repository at this point in the history
Revert to `nil` in `Rule::Lint::Typos.BIN_PATH` if `Process.find_executable` fails
  • Loading branch information
Sija authored Jul 25, 2024
2 parents e0fa8bb + a836e2c commit a42b218
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ameba/rule/lint/typos.cr
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a42b218

Please sign in to comment.