Skip to content

Commit

Permalink
remove defer
Browse files Browse the repository at this point in the history
  • Loading branch information
DouglasFischer committed Oct 1, 2024
1 parent 602fd91 commit 8b74a9e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions internal/web/report.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ func getCCList(db *sql.DB) ([]string, error) {
if err != nil {
return nil, fmt.Errorf("failed to get CCList from database: %v", err)
}
defer result.Close()

var CCList []string

Expand All @@ -121,7 +120,6 @@ func getReportLines(db *sql.DB, year string, cc string) ([]ReportLine, error) {
if err != nil {
return nil, fmt.Errorf("failed to get reportlines from database: %v", err)
}
defer result.Close()

var reportLines []ReportLine

Expand Down

0 comments on commit 8b74a9e

Please sign in to comment.