Fix vet errors in aufs.go about Lock by value

Signed-off-by: Alexander Morozov <lk4d4@docker.com>
This commit is contained in:
Alexander Morozov 2014-12-12 10:46:09 -08:00
parent e7d086c2be
commit 2540765ddc

View file

@ -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
}