Skip to content

Commit a3a28ed

Browse files
committed
Compare env string in place
1 parent 36b7980 commit a3a28ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Adjust/adjust/src/main/java/com/adjust/sdk/AdjustConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,13 @@ private static boolean checkEnvironment(String environment) {
108108
return false;
109109
}
110110

111-
if (environment == AdjustConfig.ENVIRONMENT_SANDBOX) {
111+
if (environment.equals(AdjustConfig.ENVIRONMENT_SANDBOX)) {
112112
logger.Assert("SANDBOX: Adjust is running in Sandbox mode. " +
113113
"Use this setting for testing. " +
114114
"Don't forget to set the environment to `production` before publishing!");
115115
return true;
116116
}
117-
if (environment == AdjustConfig.ENVIRONMENT_PRODUCTION) {
117+
if (environment.equals(AdjustConfig.ENVIRONMENT_PRODUCTION)) {
118118
logger.Assert(
119119
"PRODUCTION: Adjust is running in Production mode. " +
120120
"Use this setting only for the build that you want to publish. " +

0 commit comments

Comments
 (0)