small change in scoremanager
small change in scoremanager

--- a/js/local_score_manager.js
+++ b/js/local_score_manager.js
@@ -19,11 +19,7 @@
 }
 
 LocalScoreManager.prototype.get = function () {
-  var score = this.storage.getItem(this.key);
-  if (typeof score === "undefined" || score === null) {
-    score = 0;
-  }
-  return score;
+  return this.storage.getItem(this.key) || 0;
 };
 
 LocalScoreManager.prototype.set = function (score) {

comments