Skip to content

Commit fd5f48e

Browse files
committed
fix: Remove unused translator parameters from runExportOnce and runWithSchedule
1 parent 7b26312 commit fd5f48e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cmd/export_trakt/main.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func main() {
6969
"export_type": *exportType,
7070
"export_mode": *exportMode,
7171
})
72-
runExportOnce(cfg, log, translator, *exportType, *exportMode)
72+
runExportOnce(cfg, log, *exportType, *exportMode)
7373
return
7474
}
7575

@@ -80,7 +80,7 @@ func main() {
8080
"export_type": *exportType,
8181
"export_mode": *exportMode,
8282
})
83-
runWithSchedule(cfg, log, translator, *scheduleFlag, *exportType, *exportMode)
83+
runWithSchedule(cfg, log, *scheduleFlag, *exportType, *exportMode)
8484
return
8585
}
8686

@@ -290,7 +290,7 @@ func exportWatchlist(client *api.Client, exporter *export.LetterboxdExporter, lo
290290
}
291291

292292
// runExportOnce executes the export once and then exits
293-
func runExportOnce(cfg *config.Config, log logger.Logger, translator *i18n.Translator, exportType, exportMode string) {
293+
func runExportOnce(cfg *config.Config, log logger.Logger, exportType, exportMode string) {
294294
log.Info("export.starting_execution", map[string]interface{}{
295295
"export_type": exportType,
296296
"export_mode": exportMode,
@@ -352,7 +352,7 @@ func runExportOnce(cfg *config.Config, log logger.Logger, translator *i18n.Trans
352352
}
353353

354354
// runWithSchedule sets up a cron scheduler and runs the export according to the schedule
355-
func runWithSchedule(cfg *config.Config, log logger.Logger, translator *i18n.Translator, schedule, exportType, exportMode string) {
355+
func runWithSchedule(cfg *config.Config, log logger.Logger, schedule, exportType, exportMode string) {
356356
log.Info("scheduler.initializing", map[string]interface{}{
357357
"schedule": schedule,
358358
"export_type": exportType,
@@ -412,7 +412,7 @@ func runWithSchedule(cfg *config.Config, log logger.Logger, translator *i18n.Tra
412412
})
413413

414414
startTime := time.Now()
415-
runExportOnce(cfg, log, translator, exportType, exportMode)
415+
runExportOnce(cfg, log, exportType, exportMode)
416416
duration := time.Since(startTime)
417417

418418
log.Info("scheduler.export_execution_completed", map[string]interface{}{

0 commit comments

Comments
 (0)