remove unnecessary error check

This commit is contained in:
Hongchao Deng 2016-02-13 22:23:06 -08:00
parent ad36fc8ba5
commit 0d89cfd6e5

View File

@ -246,9 +246,6 @@ func (h *etcdHelper) Set(ctx context.Context, key string, obj, out runtime.Objec
metrics.RecordEtcdRequestLatency("create", getTypeName(obj), startTime)
}
if err != nil {
return err
}
if out != nil {
if _, err := conversion.EnforcePtr(out); err != nil {
panic("unable to convert output object to pointer")