Skip to content

Commit f77660f

Browse files
committed
fix: remove unused versionDir parameter from downloadFuncVersion
1 parent 6e5fbf3 commit f77660f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/utils/func.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ func ensureFuncVersion(version string) (string, error) {
217217
}
218218

219219
// Download the version
220-
if err := downloadFuncVersion(version, versionDir, funcBinary); err != nil {
220+
if err := downloadFuncVersion(version, funcBinary); err != nil {
221221
return "", err
222222
}
223223

@@ -227,7 +227,7 @@ func ensureFuncVersion(version string) (string, error) {
227227
// downloadFuncVersion downloads the specified func version from GitHub releases.
228228
// It writes to a temporary file first and atomically renames it to avoid exposing
229229
// a partially-written binary to other processes.
230-
func downloadFuncVersion(version, versionDir, funcBinary string) error {
230+
func downloadFuncVersion(version, funcBinary string) error {
231231
asset := funccli.AssetName()
232232
base := "https://github.com/knative/func/releases/download/knative-" + version
233233
binaryURL := base + "/" + asset

0 commit comments

Comments
 (0)