From f1f674b6375c59a18489574da7dae44243277df0 Mon Sep 17 00:00:00 2001 From: Caesarovich <38408878+Caesarovich@users.noreply.github.com> Date: Wed, 6 Mar 2024 18:23:02 +0100 Subject: [PATCH 1/3] Remove unused 'input' field The input field is unused and causes a linter warning, which might be confusing for someone doing this exercise. --- exercises/practice/resistor-color/cases_test.go | 1 - 1 file changed, 1 deletion(-) diff --git a/exercises/practice/resistor-color/cases_test.go b/exercises/practice/resistor-color/cases_test.go index 74d4c280d..5bd35b5af 100644 --- a/exercises/practice/resistor-color/cases_test.go +++ b/exercises/practice/resistor-color/cases_test.go @@ -13,7 +13,6 @@ type colorCodeTestCase struct { type colorsTestCase struct { description string - input string expected []string } From c70282ef6d3ad32ebcf83548f7f2b9d498b3e5a8 Mon Sep 17 00:00:00 2001 From: Caesarovich <38408878+Caesarovich@users.noreply.github.com> Date: Tue, 12 Mar 2024 07:53:50 +0100 Subject: [PATCH 2/3] Remove unused 'input' field --- exercises/practice/resistor-color/.meta/gen.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/exercises/practice/resistor-color/.meta/gen.go b/exercises/practice/resistor-color/.meta/gen.go index 92a5ee3d4..6dde41fa7 100644 --- a/exercises/practice/resistor-color/.meta/gen.go +++ b/exercises/practice/resistor-color/.meta/gen.go @@ -17,7 +17,6 @@ type colorCodePropertyCase struct { type colorsPropertyTestCase struct { Description string `json:"description"` - Input interface{} Expected []string `json:"expected"` } @@ -48,7 +47,6 @@ type colorCodeTestCase struct { type colorsTestCase struct { description string - input string expected []string } From 7e1cfbe13da768e51e35602080cb98e31d349535 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Santos?= Date: Thu, 25 Jul 2024 00:29:38 +0100 Subject: [PATCH 3/3] Format gen.go file --- exercises/practice/resistor-color/.meta/gen.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/practice/resistor-color/.meta/gen.go b/exercises/practice/resistor-color/.meta/gen.go index 6dde41fa7..3b8d82d60 100644 --- a/exercises/practice/resistor-color/.meta/gen.go +++ b/exercises/practice/resistor-color/.meta/gen.go @@ -16,7 +16,7 @@ type colorCodePropertyCase struct { } type colorsPropertyTestCase struct { - Description string `json:"description"` + Description string `json:"description"` Expected []string `json:"expected"` }