mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-17 21:05:26 +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
|
||||
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}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user