Fixes golint errors in pkg/api.

This commit is contained in:
Yuki Yugui Sonoda
2014-11-13 21:01:25 +09:00
parent d4108ec47e
commit 864bfb65da
12 changed files with 71 additions and 55 deletions

View File

@@ -471,7 +471,7 @@ func TestTypeMetaSelfLinker(t *testing.T) {
},
}
var linker runtime.SelfLinker = NewAccessor()
linker := runtime.SelfLinker(NewAccessor())
for name, item := range table {
got, err := linker.SelfLink(item.obj)
if e, a := item.succeed, err == nil; e != a {