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,
|
Path: m.path,
|
||||||
})
|
})
|
||||||
if verr, ok := err.(*errors.Error); ok && verr.Code == http.StatusNotFound {
|
if verr, ok := err.(*errors.Error); ok && verr.Code == http.StatusNotFound {
|
||||||
return &source.ChangeSet{Data: []byte{}}, nil
|
return nil, nil
|
||||||
} else if err != nil {
|
} else if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user