Browse Source

break out with false if no parameters keys provided

Kieran Gibb 2 years ago
parent
commit
567456b6bf
No known key found for this signature in database
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      index.js

+ 2
- 0
index.js View File

@@ -42,6 +42,8 @@ class GroupStore {
42 42
     var response = await this.all()
43 43
     var keys = Object.keys(params)
44 44
 
45
+    if (!keys.length) return false
46
+
45 47
     for (var i = 0; i < keys.length; ++i) {
46 48
       var key = keys[i]
47 49