From e8e8c6c134f129aed604c7ce2eaf1d98d1701e5b Mon Sep 17 00:00:00 2001 From: Robin Olsen Date: Thu, 12 Mar 2026 16:58:56 +0100 Subject: [PATCH] change so intro questons dont run if dev --- cmd/pm/runner.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/cmd/pm/runner.go b/cmd/pm/runner.go index 7a96999..98c69d3 100644 --- a/cmd/pm/runner.go +++ b/cmd/pm/runner.go @@ -129,16 +129,16 @@ func runStartCmd(cmd *cobra.Command, args []string) error { if err := newIntroModel().Run(); err != nil { return returnIfUserQuit(err, "failed to run intro") } - } - introAnswers, err := newIntroQuestionnaire().Run() - if err != nil { - return returnIfUserQuit(err, "failed to run intro questionnaire") - } + introAnswers, err := newIntroQuestionnaire().Run() + if err != nil { + return returnIfUserQuit(err, "failed to run intro questionnaire") + } - if app != nil && app.Stats != nil && introAnswers != nil { - if err := app.Stats.RecordIntroQuestionnaireAnswers(introAnswers); err != nil { - cmd.Printf("Failed to record intro questionnaire answers: %v\n", err) + if app != nil && app.Stats != nil && introAnswers != nil { + if err := app.Stats.RecordIntroQuestionnaireAnswers(introAnswers); err != nil { + cmd.Printf("Failed to record intro questionnaire answers: %v\n", err) + } } }