Skip to content

Commit 1be01be

Browse files
Address AI & lint feedback
Signed-off-by: Lukasz Gryglicki <[email protected]> Assisted by [OpenAI](https://platform.openai.com/) Assisted by [GitHub Copilot](https://github.com/features/copilot)
1 parent d0ce5a1 commit 1be01be

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

cla-backend-go/monthly_signature_report.go renamed to cla-backend-go/cmd/monthly_signature_report/monthly_signature_report.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ type MonthlyStats struct {
4444
CCLA int
4545
}
4646

47+
// go run cmd/monthly_signature_report/monthly_signature_report.go
4748
func main() {
4849
// Set up AWS session
4950
sess, err := session.NewSessionWithOptions(session.Options{
@@ -99,9 +100,9 @@ func main() {
99100
err = svc.ScanPages(params, func(page *dynamodb.ScanOutput, lastPage bool) bool {
100101
for _, item := range page.Items {
101102
var sig SignatureRecord
102-
err := dynamodbattribute.UnmarshalMap(item, &sig)
103-
if err != nil {
104-
log.Printf("Error unmarshalling record: %v", err)
103+
e := dynamodbattribute.UnmarshalMap(item, &sig)
104+
if e != nil {
105+
log.Printf("Error unmarshalling record: %v", e)
105106
continue
106107
}
107108

0 commit comments

Comments
 (0)