mirror of
https://github.com/gomods/athens
synced 2026-02-10 13:28:11 +00:00
* Remove inefficient assignment of variable cxt in pkg/storage/fs * Remove inefficient assignment of variable cxt in pkg/storage/minio * Remove inefficient assignment of variable cxt in pkg/storage/mongo * Fix commonly misspelled English words successfully and accessible * Remove inefficient assignment of variable cxt in pkg/download * Remove inefficient assignment of variable cxt in pkg/module * Add missing error checks in a few unit-test files * Revert removal of inefficient assignment of variable cxt The variable, although is not being used, it maintains the readability in the functions where it’s being assigned. The removal of `cxt` in these files may introduce errors when a new function taking these values is called. Two other contributors agree that it’s easy to miss this detail when passing the variable to other functions and the traces are not being recorded. * Modify unit-test error reporting for the config package * Modify config test to exit when ioutil.TempFile or os.Chmod fail