Remove superfluous condition
authorJoshua Rüsweg <josh@bastelstu.be>
Mon, 6 Aug 2018 13:05:13 +0000 (15:05 +0200)
committerJoshua Rüsweg <josh@bastelstu.be>
Mon, 6 Aug 2018 13:05:13 +0000 (15:05 +0200)
See #2508

wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Reaction/CountButtons.js

index e68e9c4e52f976516ac2c4828cb4f1c669da4a3a..3d026724df6551c37185d86cc9b6b83a192c080f 100644 (file)
@@ -96,9 +96,7 @@ define(
                         * @param       {int}   objectId
                         */
                        invalidateCache: function(objectId) {
-                               if (this._cache.has(objectId)) {
-                                       this._cache.delete(objectId);
-                               }
+                               this._cache.delete(objectId);
                        },
                        
                        /**