Fix vet errors in aufs.go about Lock by value
Signed-off-by: Alexander Morozov <lk4d4@docker.com>
This commit is contained in:
parent
e7d086c2be
commit
2540765ddc
1 changed files with 4 additions and 4 deletions
|
@ -134,15 +134,15 @@ func supportsAufs() error {
|
|||
return ErrAufsNotSupported
|
||||
}
|
||||
|
||||
func (a Driver) rootPath() string {
|
||||
func (a *Driver) rootPath() string {
|
||||
return a.root
|
||||
}
|
||||
|
||||
func (Driver) String() string {
|
||||
func (*Driver) String() string {
|
||||
return "aufs"
|
||||
}
|
||||
|
||||
func (a Driver) Status() [][2]string {
|
||||
func (a *Driver) Status() [][2]string {
|
||||
ids, _ := loadIds(path.Join(a.rootPath(), "layers"))
|
||||
return [][2]string{
|
||||
{"Root Dir", a.rootPath()},
|
||||
|
@ -152,7 +152,7 @@ func (a Driver) Status() [][2]string {
|
|||
|
||||
// Exists returns true if the given id is registered with
|
||||
// this driver
|
||||
func (a Driver) Exists(id string) bool {
|
||||
func (a *Driver) Exists(id string) bool {
|
||||
if _, err := os.Lstat(path.Join(a.rootPath(), "layers", id)); err != nil {
|
||||
return false
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue