Skip to content

Commit

Permalink
Update registration.jl
Browse files Browse the repository at this point in the history
Trying to fix issue oxinabox#86 (not sure what I am doing at this point)
  • Loading branch information
briochemc authored Feb 15, 2019
1 parent 6c94424 commit f43cb0f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/registration.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ const registry = Dict{String, AbstractDataDep}()
function register(datadep::AbstractDataDep)
name = datadep.name
if haskey(registry, name)
if isequal(datadep, registry[name])
return registry
end
@warn("Over-writing registration of the datadep", name)
end
if !is_valid_name(name)
Expand Down

0 comments on commit f43cb0f

Please sign in to comment.