Skip to content

Commit

Permalink
KAA-462: simplify expression
Browse files Browse the repository at this point in the history
  • Loading branch information
batytskyy committed Apr 14, 2015
1 parent 22f1992 commit a697d8b
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -185,8 +185,7 @@ private void checkConfigVersionForUpdates(KaaClientProperties sdkProperties) {
int configVersionFromProperties = sdkProperties.getVersionInfo().getConfigVersion();
String loadedConfigVersionStr = state.getProperty(CONFIGURATION_VERSION);

isConfigVersionUpdated = (loadedConfigVersionStr != null ? (configVersionFromProperties != Integer.parseInt(loadedConfigVersionStr))
: false);
isConfigVersionUpdated = (loadedConfigVersionStr != null && (configVersionFromProperties != Integer.parseInt(loadedConfigVersionStr)));

if (isConfigVersionUpdated || (loadedConfigVersionStr == null)) {
state.setProperty(CONFIGURATION_VERSION, Integer.toString(configVersionFromProperties));
Expand Down

0 comments on commit a697d8b

Please sign in to comment.