Skip to content

Commit

Permalink
Deploying from phrase/openapi@ab5603a8
Browse files Browse the repository at this point in the history
  • Loading branch information
Phrase committed Apr 26, 2022
1 parent 0d6a0b1 commit 5565637
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Phrase is a translation management platform for software projects. You can colla
This CLI client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project.

- API version: 2.0.0
- Package version: 2.4.8
- Package version: 2.4.9

- Build package: org.openapitools.codegen.languages.GoClientCodegen

Expand Down
2 changes: 1 addition & 1 deletion cmd/internal/shared.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func LocalesForProjects(client *phrase.APIClient, projectLocales ProjectLocales,

remoteLocales, http_response, err := RemoteLocales(client, key)
if err != nil {
if http_response.StatusCode == 404 && branch != "" {
if http_response != nil && http_response.StatusCode == 404 && branch != "" {
// skip this key if we targeted a branch in
// a project which does not exist
continue
Expand Down

0 comments on commit 5565637

Please sign in to comment.