entc/internal: fix snapshot schema merge (#1022)

This commit is contained in:
BrentChesny
2020-12-07 13:06:23 +01:00
committed by GitHub
parent 79349fc88d
commit 59ffc461a3

View File

@@ -81,7 +81,7 @@ func (s *Snapshot) parseSnapshot(buf []byte) (*gen.Snapshot, error) {
return local, nil
}
// In case of merge-conflict, we merge the 2 schemas.
line, err = trim(matches[0])
line, err = trim(matches[1])
if err != nil {
return nil, err
}