Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
Signed-off-by: Billy Zha <[email protected]>
  • Loading branch information
qweeah committed Dec 23, 2022
1 parent 6f1abcb commit cdfab33
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/oras/internal/fileref/unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ import (
)

// Parse parses file reference on unix.
func Parse(reference string, mediaType string) (filePath, mediatype string, err error) {
func Parse(reference string, defaultMediaType string) (filePath, mediaType string, err error) {
filePath = reference
mediaType = defaultMediaType
i := strings.LastIndex(reference, ":")
if i >= 0 {
filePath, mediatype = reference[:i], reference[i+1:]
Expand Down

0 comments on commit cdfab33

Please sign in to comment.