Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
PharmCat committed Jan 13, 2025
1 parent 7cd0350 commit 3f4a98b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/dataset.jl
Original file line number Diff line number Diff line change
Expand Up @@ -185,31 +185,31 @@ function findfirstel(d::DataSet{<: AbstractIdData}, sort::Dict)
return d[ind]

Check warning on line 185 in src/dataset.jl

View check run for this annotation

Codecov / codecov/patch

src/dataset.jl#L185

Added line #L185 was not covered by tests
end
end
function Base.findlastel(d::DataSet{<: AbstractIdData}, sort::Dict)
function findlastel(d::DataSet{<: AbstractIdData}, sort::Dict)
ind = findlast(x-> sort getid(x), getdata(d))
if isnothing(ind)
return nothing

Check warning on line 191 in src/dataset.jl

View check run for this annotation

Codecov / codecov/patch

src/dataset.jl#L188-L191

Added lines #L188 - L191 were not covered by tests
else
return d[ind]

Check warning on line 193 in src/dataset.jl

View check run for this annotation

Codecov / codecov/patch

src/dataset.jl#L193

Added line #L193 was not covered by tests
end
end
function Base.findnextel(d::DataSet{<: AbstractIdData}, sort::Dict, i::Int)
function findnextel(d::DataSet{<: AbstractIdData}, sort::Dict, i::Int)
ind = findnext(x-> sort getid(x), getdata(d), i)
if isnothing(ind)
return nothing

Check warning on line 199 in src/dataset.jl

View check run for this annotation

Codecov / codecov/patch

src/dataset.jl#L196-L199

Added lines #L196 - L199 were not covered by tests
else
return d[ind]

Check warning on line 201 in src/dataset.jl

View check run for this annotation

Codecov / codecov/patch

src/dataset.jl#L201

Added line #L201 was not covered by tests
end
end
function Base.findprevel(d::DataSet{<: AbstractIdData}, sort::Dict, i::Int)
function findprevel(d::DataSet{<: AbstractIdData}, sort::Dict, i::Int)
ind = findprev(x-> sort getid(x), getdata(d), i)
if isnothing(ind)
return nothing

Check warning on line 207 in src/dataset.jl

View check run for this annotation

Codecov / codecov/patch

src/dataset.jl#L204-L207

Added lines #L204 - L207 were not covered by tests
else
return d[ind]

Check warning on line 209 in src/dataset.jl

View check run for this annotation

Codecov / codecov/patch

src/dataset.jl#L209

Added line #L209 was not covered by tests
end
end
function Base.findallel(d::DataSet{<: AbstractIdData}, sort::Dict)
function findallel(d::DataSet{<: AbstractIdData}, sort::Dict)
ind = findall(x-> sort getid(x), getdata(d))
if isnothing(ind)
return nothing

Check warning on line 215 in src/dataset.jl

View check run for this annotation

Codecov / codecov/patch

src/dataset.jl#L212-L215

Added lines #L212 - L215 were not covered by tests
Expand Down

0 comments on commit 3f4a98b

Please sign in to comment.