From e909de3d5b0fa7f3f27eb40c3c59323d5c162da0 Mon Sep 17 00:00:00 2001 From: Robin Olsen Date: Thu, 19 Feb 2026 17:34:42 +0100 Subject: [PATCH] reduce redundancy --- cmd/survey/tasks/codingTask.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cmd/survey/tasks/codingTask.go b/cmd/survey/tasks/codingTask.go index 0cf1372..9d3110d 100644 --- a/cmd/survey/tasks/codingTask.go +++ b/cmd/survey/tasks/codingTask.go @@ -63,9 +63,7 @@ func (t *CodingTask) Setup(ctx context.Context) error { return err } - content := textFileContent - - if err := os.WriteFile("./code.txt", []byte(content), 0644); err != nil { + if err := os.WriteFile("./code.txt", []byte(textFileContent), 0644); err != nil { return err }