internal/modsdir: Fix Dropped Error (#24600)

* internal/modsdir: fix dropped error

* fix typo to unmarshalling

Co-authored-by: Daniel Dreier <danieldreier@users.noreply.github.com>
This commit is contained in:
Lars Lehtonen 2020-06-04 07:26:26 -07:00 committed by GitHub
parent dc3ce1bbf7
commit 3ddfa66ca4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -77,7 +77,9 @@ func ReadManifestSnapshot(r io.Reader) (Manifest, error) {
var read manifestSnapshotFile
err = json.Unmarshal(src, &read)
if err != nil {
return nil, fmt.Errorf("error unmarshalling snapshot: %v", err)
}
new := make(Manifest)
for _, record := range read.Records {
if record.VersionStr != "" {