@@ -123,22 +123,21 @@ func runImportCmd(opts *config.ImportOptions) error {
123
123
if err != nil {
124
124
return err
125
125
}
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 ),
131
130
)
132
131
if err != nil {
133
132
return fmt .Errorf ("%s An error occurred when saving synonyms: %w" , cs .FailureIcon (), err )
134
133
}
135
134
}
136
135
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
+ )
142
141
if err != nil {
143
142
return fmt .Errorf ("%s An error occurred when saving rules: %w" , cs .FailureIcon (), err )
144
143
}
0 commit comments