Skip to content

Commit 7f4f508

Browse files
author
Phrase
committed
Deploying from phrase/openapi@3363de7b
1 parent 7c07759 commit 7f4f508

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd/internal/init.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ func (cmd *InitCommand) newProject() error {
243243
}
244244

245245
func (cmd *InitCommand) selectFormat() error {
246-
formats, _, err := cmd.client.FormatsApi.FormatsList(Auth, &phrase.FormatsListOpts{})
246+
formats, _, err := cmd.client.FormatsApi.FormatsList(Auth)
247247
if err != nil {
248248
return err
249249
}

cmd/internal/push.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ func outputUpload(upload *phrase.Upload) {
241241
}
242242

243243
func formatsByApiName(client *phrase.APIClient) (map[string]*phrase.Format, error) {
244-
formats, _, err := client.FormatsApi.FormatsList(Auth, &phrase.FormatsListOpts{})
244+
formats, _, err := client.FormatsApi.FormatsList(Auth)
245245
if err != nil {
246246
return nil, err
247247
}

0 commit comments

Comments
 (0)