Skip to content

Commit

Permalink
Merge pull request #19 from martijnvdp/concurrency
Browse files Browse the repository at this point in the history
add length check
  • Loading branch information
martijnvdp committed Mar 16, 2023
2 parents e5d9721 + e609636 commit 281dbd4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/lambda/lambda.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,9 @@ func Start(ctx context.Context, event LambdaEvent) (response, error) {
log.Fatal(err)
}
mu.Lock()
allTagsToSync = append(allTagsToSync, tagsToSync)
if len(tagsToSync.tags) > 0 {
allTagsToSync = append(allTagsToSync, tagsToSync)
}
mu.Unlock()
}(j)

Expand Down

0 comments on commit 281dbd4

Please sign in to comment.