mirror of
https://github.com/distribution/distribution.git
synced 2025-09-02 07:25:25 +00:00
golint for cliconfig
- fully capitalize HTTP in HTTPHeaders - comment for CONFIGFILE - camelcase and privatize oldConfigfile, defaultIndexserver - remove unused var errConfigFileMissing - comments for methods and functions throughout - external references to renamed variables changed Signed-off-by: Morgan Bauer <mbauer@us.ibm.com>
This commit is contained in:
@@ -34,7 +34,7 @@ func setupTempConfigFile() (*cliconfig.ConfigFile, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
root = filepath.Join(root, cliconfig.CONFIGFILE)
|
root = filepath.Join(root, cliconfig.ConfigFileName)
|
||||||
configFile := cliconfig.NewConfigFile(root)
|
configFile := cliconfig.NewConfigFile(root)
|
||||||
|
|
||||||
for _, registry := range []string{"testIndex", INDEXSERVER} {
|
for _, registry := range []string{"testIndex", INDEXSERVER} {
|
||||||
|
Reference in New Issue
Block a user