reference: format code with gofumpt

Formatting the code with https://github.com/mvdan/gofumpt

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2022-01-20 14:14:29 +01:00
parent 99968eec3f
commit ac1514abf4
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

View file

@ -14,11 +14,9 @@ import (
"github.com/pkg/errors"
)
var (
// ErrDoesNotExist is returned if a reference is not found in the
// store.
ErrDoesNotExist notFoundError = "reference does not exist"
)
// ErrDoesNotExist is returned if a reference is not found in the
// store.
var ErrDoesNotExist notFoundError = "reference does not exist"
// An Association is a tuple associating a reference with an image ID.
type Association struct {
@ -317,7 +315,7 @@ func (store *refStore) save() error {
if err != nil {
return err
}
return ioutils.AtomicWriteFile(store.jsonPath, jsonData, 0600)
return ioutils.AtomicWriteFile(store.jsonPath, jsonData, 0o600)
}
func (store *refStore) reload() error {