Skip to content

Commit

Permalink
Correct function remove_provider!() for Nothing
Browse files Browse the repository at this point in the history
  • Loading branch information
s915 committed Sep 13, 2019
1 parent 4594430 commit 360da65
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/rdb_by_api_link.jl
Original file line number Diff line number Diff line change
Expand Up @@ -330,10 +330,10 @@ function rdb_by_api_link(
)

if suffix != ""
DBdata[Symbol(addcol)] = ifelse.(
isa.(DBdata[Symbol(newcol)], Missing),
DBdata[Symbol(addcol)],
DBdata[Symbol(newcol)]
DBdata[selectop, Symbol(addcol)] = ifelse.(
isa.(DBdata[selectop, Symbol(newcol)], Missing),
DBdata[selectop, Symbol(addcol)],
DBdata[selectop, Symbol(newcol)]
)
df_delete_col!(DBdata, Symbol(newcol))
end
Expand Down
2 changes: 2 additions & 0 deletions src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -468,11 +468,13 @@ end

#-------------------------------------------------------------------------------
# remove_provider
remove_provider!(x::Nothing) = nothing
function remove_provider!(x::Array)
map(x) do u
u[1] = replace(u[1], r".*/" => "")
u
end
nothing
end

#-------------------------------------------------------------------------------
Expand Down

0 comments on commit 360da65

Please sign in to comment.