We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85e681b commit 53a91c8Copy full SHA for 53a91c8
pkg/sources/s3/s3.go
@@ -762,8 +762,8 @@ func (s *Source) UnmarshalSourceUnit(data []byte) (sources.SourceUnit, error) {
762
if err := json.Unmarshal(data, &unit); err != nil {
763
return nil, err
764
}
765
- bucket, kind := unit.SourceUnitID()
766
- if bucket == "" || kind != SourceUnitKindBucket {
+ unitID, kind := unit.SourceUnitID()
+ if unitID == "" || kind != SourceUnitKindBucket {
767
return nil, fmt.Errorf("not an S3SourceUnit")
768
769
return unit, nil
0 commit comments