crowdsec/pkg/cwhub
mmetc d39131d154
Refact pkg/cwhub (part 1) (#2512)
* wrap errors, whitespace
* remove named return
* reverse CheckSuffix logic, rename function
* drop redundant if/else, happy path
* log.Fatal -> fmt.Errorf
* simplify GetItemMap, AddItem
* var -> const
* removed short-lived vars
* de-duplicate function and reverse logic
2023-10-04 10:34:10 +02:00
..
tests Cwhub testing (#1438) 2022-04-19 12:07:35 +02:00
cwhub.go Refact pkg/cwhub (part 1) (#2512) 2023-10-04 10:34:10 +02:00
cwhub_test.go Refact pkg/cwhub (part 1) (#2512) 2023-10-04 10:34:10 +02:00
dataset.go lint: pkg/cwhub (#2510) 2023-10-03 11:20:56 +02:00
dataset_test.go lint: pkg/cwhub (#2510) 2023-10-03 11:20:56 +02:00
download.go Refact pkg/cwhub (part 1) (#2512) 2023-10-04 10:34:10 +02:00
download_test.go lint: pkg/cwhub (#2510) 2023-10-03 11:20:56 +02:00
helpers.go lint: pkg/cwhub (#2510) 2023-10-03 11:20:56 +02:00
helpers_test.go lint: pkg/cwhub (#2510) 2023-10-03 11:20:56 +02:00
install.go Refact pkg/cwhub (part 1) (#2512) 2023-10-04 10:34:10 +02:00
loader.go Refact pkg/cwhub (part 1) (#2512) 2023-10-04 10:34:10 +02:00
pathseparator.go Refact pkg/cwhub (part 1) (#2512) 2023-10-04 10:34:10 +02:00
pathseparator_windows.go Refact pkg/cwhub (part 1) (#2512) 2023-10-04 10:34:10 +02:00