Skip to content

Commit

Permalink
chore: remove dead end code (#611)
Browse files Browse the repository at this point in the history
  • Loading branch information
UncleGedd committed May 16, 2024
1 parent 18cde5a commit 9050b07
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/pkg/bundler/fetcher/remote.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ package fetcher

import (
"context"
"encoding/json"
"fmt"
"os"
"path/filepath"
Expand Down Expand Up @@ -62,17 +61,6 @@ func (f *remoteFetcher) Fetch() ([]ocispec.Descriptor, error) {

// add layer to bundle's root manifest
f.cfg.BundleRootManifest.Layers = append(f.cfg.BundleRootManifest.Layers, layerDesc)
} else if layerDesc.MediaType == zoci.ZarfConfigMediaType {
// read in and unmarshal zarf config
jsonData, err := os.ReadFile(filepath.Join(f.cfg.TmpDstDir, config.BlobsDir, layerDesc.Digest.Encoded()))
if err != nil {
return nil, err
}
var zarfConfigData oci.ConfigPartial
err = json.Unmarshal(jsonData, &zarfConfigData)
if err != nil {
return nil, err
}
}
}

Expand Down

0 comments on commit 9050b07

Please sign in to comment.