Skip to content

Commit

Permalink
resolve comment
Browse files Browse the repository at this point in the history
Signed-off-by: Billy Zha <[email protected]>
  • Loading branch information
qweeah committed Apr 2, 2024
1 parent 2b52250 commit 47eea86
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/oras/internal/display/metadata/model/pull.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ type Pulled struct {
}

// Add adds a pulled file.
func (f *Pulled) Add(name string, outputDir string, desc ocispec.Descriptor, descPath string) {
f.lock.Lock()
defer f.lock.Unlock()
f.Files = append(f.Files, newFile(name, outputDir, desc, descPath))
func (p *Pulled) Add(name string, outputDir string, desc ocispec.Descriptor, descPath string) {
p.lock.Lock()
defer p.lock.Unlock()
p.Files = append(p.Files, newFile(name, outputDir, desc, descPath))
}

0 comments on commit 47eea86

Please sign in to comment.