autobrr/internal/config
soup d8c977b5ba
refactor(config): copylocks and staticcheck findings (#1261)
refactor: copylocks and staticcheck findings

Refactor mutex handling, optimize byte slice creation, and clean up code in accordance with go.staticcheck and copylocks guidelines.

- Changed AppConfig's mutex to *sync.Mutex, preventing mutex copying and enhancing thread safety.
- Simplified byte slice initialization in writeConfig for efficiency.
- Removed redundant return in DynamicReload for better code clarity.
2023-11-19 16:03:53 +01:00
..
config.go refactor(config): copylocks and staticcheck findings (#1261) 2023-11-19 16:03:53 +01:00
config_test.go refactor(config): copylocks and staticcheck findings (#1261) 2023-11-19 16:03:53 +01:00