summaryrefslogtreecommitdiff
path: root/internal/commands/import.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/commands/import.go')
-rw-r--r--internal/commands/import.go4
1 files changed, 2 insertions, 2 deletions
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()