Skip to content

Commit

Permalink
Fix iteration bug
Browse files Browse the repository at this point in the history
  • Loading branch information
tpgillam committed May 16, 2021
1 parent 6b10a74 commit ba1a68b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/header/core.jl
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ function get_time_fields(metadata::TeaFileMetadata)::Vector{Field}
field, iter_field_state = iterate(item_section.fields)
for time_field_offset in time_section.time_field_offsets
while time_field_offset > field.offset
field, field_state = iterate(item_section.fields, iter_field_state)
field, iter_field_state = iterate(item_section.fields, iter_field_state)
end
if field.offset != time_field_offset
throw(ArgumentError("Inconsistent metadata; could not find time field."))
Expand Down

0 comments on commit ba1a68b

Please sign in to comment.