Преглед на файлове

Fix ineffassign and misspell warnings

Vadim Markovtsev преди 7 години
родител
ревизия
12a759efb9
променени са 2 файла, в които са добавени 2 реда и са изтрити 2 реда
  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