Skip to content

Commit 53a91c8

Browse files
committed
rename bucket -> unitID in UnmarshalSourceUnit
1 parent 85e681b commit 53a91c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/sources/s3/s3.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -762,8 +762,8 @@ func (s *Source) UnmarshalSourceUnit(data []byte) (sources.SourceUnit, error) {
762762
if err := json.Unmarshal(data, &unit); err != nil {
763763
return nil, err
764764
}
765-
bucket, kind := unit.SourceUnitID()
766-
if bucket == "" || kind != SourceUnitKindBucket {
765+
unitID, kind := unit.SourceUnitID()
766+
if unitID == "" || kind != SourceUnitKindBucket {
767767
return nil, fmt.Errorf("not an S3SourceUnit")
768768
}
769769
return unit, nil

0 commit comments

Comments
 (0)