Skip to content

Commit 6e8946c

Browse files
authored
Update github/repos_contents.go
1 parent bee9a1a commit 6e8946c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

github/repos_contents.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func (r *RepositoryContent) GetContent() (string, error) {
9292
}
9393
return *r.Content, nil
9494
case "none":
95-
return "", fmt.Errorf("unsupported content encoding: %v, this may occur when file size > 1 MB, if that is the case consider using DownloadContents", encoding)
95+
return "", errors.New("unsupported content encoding: none, this may occur when file size > 1 MB, if that is the case consider using DownloadContents")
9696
default:
9797
return "", fmt.Errorf("unsupported content encoding: %v", encoding)
9898
}

0 commit comments

Comments
 (0)