Skip to content

Commit

Permalink
chore: fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
karl-cardenas-coding committed Aug 16, 2024
1 parent f00ffaa commit c8d8e73
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/xlsx.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,10 @@ func ConvertToExcel(userData User) ([]byte, error) {
"Zone Five Time (Miliseconds)",
}

f.SetSheetRow("Workout Data", "A1", &workoutHeaders)
err = f.SetSheetRow("Workout Data", "A1", &workoutHeaders)
if err != nil {
return csvData, fmt.Errorf("failed to set header row in Workout Data sheet: %v", err.Error())
}
rowCounter = 1

for i := 0; i < len(userData.WorkoutCollection.Records); i++ {
Expand Down

0 comments on commit c8d8e73

Please sign in to comment.