Explorar el Código

Fix ineffassign and misspell warnings

Vadim Markovtsev hace 7 años
padre
commit
12a759efb9
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      pipeline_test.go
  2. 1 1
      registry.go

+ 1 - 1
pipeline_test.go

@@ -158,7 +158,7 @@ func TestPipelineFeatures(t *testing.T) {
 	pipeline.SetFeature("feat")
 	val, _ := pipeline.GetFeature("feat")
 	assert.True(t, val)
-	val, exists := pipeline.GetFeature("!")
+	_, exists := pipeline.GetFeature("!")
 	assert.False(t, exists)
 	Registry.featureFlags.Set("777")
 	defer func() {

+ 1 - 1
registry.go

@@ -116,7 +116,7 @@ func (registry *PipelineItemRegistry) GetFeaturedItems() map[string][]FeaturedPi
 }
 
 type arrayFeatureFlags struct {
-	// Flags containts the features activated through the command line.
+	// Flags contains the features activated through the command line.
 	Flags []string
 	// Choices contains all registered features.
 	Choices map[string]bool