Skip to content

Commit

Permalink
Improve type stability in read_sysinfo_gap
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin committed Sep 29, 2022
1 parent 62c1e9a commit df089c9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/setup.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ function force_symlink(p::AbstractString, np::AbstractString)
end

function read_sysinfo_gap(dir::String)
d = missing
d = Dict{String,String}()
open(joinpath(dir, "sysinfo.gap")) do file
d = Dict{String,String}()
for ln in eachline(file)
if length(ln) == 0 || ln[1] == '#'
continue
Expand Down

0 comments on commit df089c9

Please sign in to comment.