Skip to content

Commit

Permalink
remove typod fodler arg
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed May 4, 2023
1 parent 61394b4 commit c77f717
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func connectToPutio() (*putio.Client, error) {
return client, nil
}

func folderIDConvert(fodlerID string) (int64, error) {
func folderIDConvert() (int64, error) {
folderID, err := strconv.ParseInt(downloadFolderID, 10, 32)
if err != nil {
str := fmt.Sprintf("strconv err: %v", err)
Expand All @@ -49,7 +49,7 @@ func uploadToPutio(filename string, filepath string, client *putio.Client) error
defer cancel()

// Convert FolderID from string to int to use with Files.Upload
folderID, err := folderIDConvert(downloadFolderID)
folderID, err := folderIDConvert()
if err != nil {
return err
}
Expand Down Expand Up @@ -81,7 +81,7 @@ func transferToPutio(filename string, filepath string, client *putio.Client) err
defer cancel()

// Convert FolderID from string to int to use with Files.Upload
folderID, err := folderIDConvert(downloadFolderID)
folderID, err := folderIDConvert()
if err != nil {
return err
}
Expand Down

0 comments on commit c77f717

Please sign in to comment.