Skip to content
This repository has been archived by the owner on Apr 5, 2023. It is now read-only.

Commit

Permalink
fix: skip manifest file read if not set
Browse files Browse the repository at this point in the history
Signed-off-by: Rolson Quadras <[email protected]>
  • Loading branch information
rolsonquadras committed Jan 24, 2022
1 parent e7a8fd1 commit 181d37f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/adapter-rest/startcmd/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -1213,6 +1213,10 @@ func getPresentationExchangeProvider(configFile string) (*presentationex.Provide

func readCMOutputDescriptorFile(outputDescriptorsFile string) (cmOutputDescriptors map[string][]*cm.OutputDescriptor,
err error) {
if outputDescriptorsFile == "" {
return make(map[string][]*cm.OutputDescriptor), nil
}

credentialManifestBytes, err := ioutil.ReadFile(filepath.Clean(outputDescriptorsFile))
if err != nil {
return nil, fmt.Errorf("read output descriptors file : %w", err)
Expand Down

0 comments on commit 181d37f

Please sign in to comment.