Skip to content

Commit

Permalink
fix: ignore broken symlinks (#832)
Browse files Browse the repository at this point in the history
* fix: ignore broken symlinks

* fix ci

* maybe

* excluding 1.4 macos

(cherry picked from commit fcb7966)

* fix

* Update .github/workflows/ci.yml

Co-authored-by: Sebastian Pfitzner <pfitzseb@gmail.com>

---------

Co-authored-by: Sebastian Pfitzner <pfitzseb@gmail.com>
Co-authored-by: Dominique Luna <dluna132@gmail.com>
  • Loading branch information
3 people authored Jun 16, 2024
1 parent ecc9981 commit 93ca402
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/JuliaFormatter.jl
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,7 @@ function format(path::AbstractString, options::Configuration)
formatted = Threads.Atomic{Bool}(true)
Threads.@threads for subpath in readdir(path)
subpath = joinpath(path, subpath)
!ispath(subpath) && continue
is_formatted = format(subpath, options)
Threads.atomic_and!(formatted, is_formatted)
end
Expand Down

0 comments on commit 93ca402

Please sign in to comment.