Skip to content

Commit 314e5f6

Browse files
committed
Tiny improvements
1 parent 5e75ede commit 314e5f6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

csQuery.nut

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ if ("csQuery" in getroottable() && typeof ::csQuery == "table" )
33

44
::csQuery <- {};
55

6-
IncludeScript("csQuery/QueryArray")
6+
IncludeScript("csQuery/QueryArray");
77

88
csQuery.SELECTOR <- {
99
CLASS = 46, // .
@@ -32,15 +32,15 @@ local all = function() {
3232

3333
function csQuery::Find(query) : (findBy, all) {
3434
if (typeof query == "instance")
35-
return QueryArray([query]);
35+
return QueryArray( query );
3636

3737
if (typeof query != "string" && typeof query != "integer")
3838
throw "The parameter's data type is invalid (Valid Types: class instance, string, char)";
3939

40-
local _selector = query[0];
40+
local selector = query[0];
4141
local body = query.slice(1);
4242

43-
switch (_selector) {
43+
switch (selector) {
4444
case SELECTOR.CLASS:
4545
return QueryArray( findBy(Entities.FindByClassname, body) );
4646
case SELECTOR.TARGETNAME:

0 commit comments

Comments
 (0)