Skip to content

Commit

Permalink
Ignore solc remappings that don't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
landakram authored and LefterisJP committed Apr 11, 2021
1 parent 32b641d commit b833549
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions solidity-flycheck.el
Original file line number Diff line number Diff line change
Expand Up @@ -212,11 +212,9 @@ no .soliumrc.json is found, `project-roots' is used."
(defun solidity-flycheck--solc-remappings ()
(let* ((allow-paths (solidity-flycheck--solc-allow-paths)))
(->> allow-paths
(mapcar
#'solidity-flycheck--only-subdirectories)

(remove-if-not #'file-exists-p)
(mapcar #'solidity-flycheck--only-subdirectories)
-flatten

(mapcar
(lambda (dir)
(let ((prefix (file-name-nondirectory dir)))
Expand Down

0 comments on commit b833549

Please sign in to comment.