RES-84 # Improve Nuclei CLI interface (WIP)

* Pleasing the linter
This commit is contained in:
forgedhallpass 2021-08-04 17:51:34 +03:00
parent 138745a6b1
commit cc55e26446

View File

@ -46,10 +46,7 @@ func toStringSlice(value string) []string {
var result []string
if strings.Contains(value, ",") {
slices := strings.Split(value, ",")
result = make([]string, 0, len(slices))
for _, slice := range slices {
result = append(result, slice)
}
result = append(result, slices...)
} else {
result = []string{value}
}