Skip to content

Commit

Permalink
Simplify.
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt committed Jan 21, 2020
1 parent cb9d049 commit e673af6
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/CoverageTools.jl
Original file line number Diff line number Diff line change
Expand Up @@ -203,12 +203,9 @@ module CoverageTools
end

# check for excluded lines
l = 1
let io = IOBuffer(content)
excluded = false
while !eof(io)
line = readline(io)

for (l, line) in enumerate(eachline(io))
# check for start/stop markers
if occursin("COV_EXCL_START", line)
excluded = true
Expand All @@ -221,8 +218,6 @@ module CoverageTools
@debug "removing line $l: $line"
coverage[l] = nothing
end

l += 1
end
end

Expand Down

0 comments on commit e673af6

Please sign in to comment.