@@ -123,22 +123,21 @@ func runImportCmd(opts *config.ImportOptions) error {
123123		if  err  !=  nil  {
124124			return  err 
125125		}
126- 		_ , err  =  indice .SaveSynonyms (synonyms ,
127- 			[]interface {}{
128- 				opt .ForwardToReplicas (opts .ForwardSynonymsToReplicas ),
129- 				opt .ReplaceExistingSynonyms (opts .ClearExistingSynonyms ),
130- 			},
126+ 		_ , err  =  indice .SaveSynonyms (
127+ 			synonyms ,
128+ 			opt .ForwardToReplicas (opts .ForwardSynonymsToReplicas ),
129+ 			opt .ReplaceExistingSynonyms (opts .ClearExistingSynonyms ),
131130		)
132131		if  err  !=  nil  {
133132			return  fmt .Errorf ("%s An error occurred when saving synonyms: %w" , cs .FailureIcon (), err )
134133		}
135134	}
136135	if  len (opts .ImportConfig .Rules ) >  0  &&  utils .Contains (opts .Scope , "rules" ) {
137- 		_ , err  =  indice .SaveRules (opts . ImportConfig . Rules , 
138- 			[] interface {}{ 
139- 				 opt .ForwardToReplicas (opts .ForwardRulesToReplicas ),
140- 				 opt .ClearExistingRules (opts .ClearExistingRules ),
141- 			} )
136+ 		_ , err  =  indice .SaveRules (
137+ 			opts . ImportConfig . Rules , 
138+ 			opt .ForwardToReplicas (opts .ForwardRulesToReplicas ),
139+ 			opt .ClearExistingRules (opts .ClearExistingRules ),
140+ 		)
142141		if  err  !=  nil  {
143142			return  fmt .Errorf ("%s An error occurred when saving rules: %w" , cs .FailureIcon (), err )
144143		}
0 commit comments