mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-18 12:45:27 +00:00
RES-84 # Improve Nuclei CLI interface (WIP)
* Pleasing the linter
This commit is contained in:
parent
138745a6b1
commit
cc55e26446
@ -46,10 +46,7 @@ func toStringSlice(value string) []string {
|
|||||||
var result []string
|
var result []string
|
||||||
if strings.Contains(value, ",") {
|
if strings.Contains(value, ",") {
|
||||||
slices := strings.Split(value, ",")
|
slices := strings.Split(value, ",")
|
||||||
result = make([]string, 0, len(slices))
|
result = append(result, slices...)
|
||||||
for _, slice := range slices {
|
|
||||||
result = append(result, slice)
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
result = []string{value}
|
result = []string{value}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user