Return nil changeset and not blank

This commit is contained in:
Ben Toogood 2020-05-27 12:20:31 +01:00
parent bb5f2e5525
commit d85b4197b4

View File

@ -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
}