Skip to content

Commit

Permalink
zero the flags too
Browse files Browse the repository at this point in the history
  • Loading branch information
davidnewhall committed Jul 8, 2024
1 parent ba46bd6 commit 7f4d348
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions orbit/copier.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ func CopyIndexer[S IndexerInput | IndexerOutput, D IndexerInput](src *S, dst *D,

element := reflect.ValueOf(dst).Elem()
zeroField(element.FieldByName("ID"), true)
zeroField(element.FieldByName("IndexerFlags"), true)
zeroField(element.FieldByName("Tags"), !keepTags)

return dst, nil
Expand Down

0 comments on commit 7f4d348

Please sign in to comment.