Merge pull request #357 from mtrmac/fix-vet

Fix (make vet)
This commit is contained in:
Ying Li 2015-12-11 11:33:24 -08:00
commit 25f22a2dc8
2 changed files with 2 additions and 2 deletions

View File

@ -350,7 +350,7 @@ type failStore struct {
storage.MemStorage
}
func (s failStore) GetCurrent(_, _ string) ([]byte, error) {
func (s *failStore) GetCurrent(_, _ string) ([]byte, error) {
return nil, fmt.Errorf("oh no! storage has failed")
}

View File

@ -205,7 +205,7 @@ func Test400Error(t *testing.T) {
// If it's a 400, translateStatusToError attempts to parse the body into
// an error. If successful (and a recognized error) that error is returned.
func TestTranslateErrorsParse400Errors(t *testing.T) {
origErr := validation.ErrBadRoot{"bad"}
origErr := validation.ErrBadRoot{Msg: "bad"}
serialObj, err := validation.NewSerializableError(origErr)
assert.NoError(t, err)