From dc895cec9d8a84af89ce2501db234dff33c757e2 Mon Sep 17 00:00:00 2001 From: T Date: Mon, 4 Aug 2025 15:34:23 -0600 Subject: timesheet and unified reports --- internal/commands/import.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/commands/import.go') diff --git a/internal/commands/import.go b/internal/commands/import.go index a1d0d8f..acbb0d6 100644 --- a/internal/commands/import.go +++ b/internal/commands/import.go @@ -65,7 +65,7 @@ For Clockify exports: cmd.Flags().StringP("timezone", "t", "Local", "Timezone of the CSV data (e.g., 'America/New_York', 'UTC', or 'Local')") cmd.Flags().StringP("source", "s", "", "Source format of the import file (supported: clockify)") - cmd.MarkFlagRequired("source") + _ = cmd.MarkFlagRequired("source") return cmd } @@ -85,7 +85,7 @@ func importClockifyCSV(queries *queries.Queries, filepath, timezone string) erro if err != nil { return fmt.Errorf("failed to open file: %w", err) } - defer file.Close() + defer func() { _ = file.Close() }() reader := csv.NewReader(file) records, err := reader.ReadAll() -- cgit v1.2.3