mirror of
https://github.com/go-micro/go-micro.git
synced 2024-11-24 08:02:32 +02:00
Return nil changeset and not blank
This commit is contained in:
parent
bb5f2e5525
commit
d85b4197b4
@ -32,7 +32,7 @@ func (m *service) Read() (set *source.ChangeSet, err error) {
|
||||
Path: m.path,
|
||||
})
|
||||
if verr, ok := err.(*errors.Error); ok && verr.Code == http.StatusNotFound {
|
||||
return &source.ChangeSet{Data: []byte{}}, nil
|
||||
return nil, nil
|
||||
} else if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user