Skip to content

Commit

Permalink
fix: prevent google loading in dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Eng committed Jul 11, 2018
1 parent 93239b5 commit bd6f5bd
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ public GoogleTranslatorBackend(DTOUtil dtoUtil,
@Credentials(BackendID.GOOGLE) GoogleCredential googleCredential) {
this.dtoUtil = dtoUtil;
this.googleCredential = googleCredential;
translate = TranslateOptions.getDefaultInstance().getService();
if (googleCredential.exists()) {
translate = TranslateOptions.getDefaultInstance().getService();
}
}

@VisibleForTesting
Expand Down

0 comments on commit bd6f5bd

Please sign in to comment.