mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 16:59:12 +00:00
![]() 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. |
||
---|---|---|
.. | ||
config.go | ||
config_test.go |