Skip to content

Commit 1e76d47

Browse files
committed
Remove redundant nil check
1 parent ab6d855 commit 1e76d47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

logs-handler/handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func Handler(ctx context.Context, event events.CloudwatchLogsEvent) error {
1919
if err != nil {
2020
log.Println("Errs extracting Firetail logs:", err.Error())
2121
}
22-
if firetailLogs == nil || len(firetailLogs) == 0 {
22+
if len(firetailLogs) == 0 {
2323
log.Println("Generated no Firetail logs from this batch. Exiting...")
2424
return nil
2525
}

0 commit comments

Comments
 (0)