summaryrefslogtreecommitdiffstats
path: root/core/js/compatibility.js
diff options
context:
space:
mode:
authorkondou <kondou@ts.unde.re>2014-03-01 02:46:27 +0100
committerkondou <kondou@ts.unde.re>2014-06-02 21:09:41 +0200
commit9bc3f3cf304c300c758743f2e460beb1fee3ecac (patch)
treeea564110fcd3a28caee27af3bf36486d1783cc3e /core/js/compatibility.js
parentc88c0b9a13231478c626296d78aac7c1f66d87d9 (diff)
downloadnextcloud-server-9bc3f3cf304c300c758743f2e460beb1fee3ecac.tar.gz
nextcloud-server-9bc3f3cf304c300c758743f2e460beb1fee3ecac.zip
Scrutinizer cleanup
Diffstat (limited to 'core/js/compatibility.js')
-rw-r--r--core/js/compatibility.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/js/compatibility.js b/core/js/compatibility.js
index c07288857f2..ac942d202e8 100644
--- a/core/js/compatibility.js
+++ b/core/js/compatibility.js
@@ -42,8 +42,9 @@ if (!Array.prototype.filter) {
for (var i = 0; i < len; i++) {
if (i in this) {
var val = this[i]; // in case fun mutates this
- if (fun.call(thisp, val, i, this))
+ if (fun.call(thisp, val, i, this)) {
res.push(val);
+ }
}
}
return res;