Skip to content

Commit 51ba338

Browse files
committed
Fix adding semicolon to empty class
1 parent 1aeb3fc commit 51ba338

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

quark/core/struct/ruleobject.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ def __init__(self, ruleJson: os.PathLike, jsonData: dict = None) -> None:
4343

4444
self._api = self._json_obj["api"]
4545
for index in range(len(self._api)):
46-
if not self._api[index]["class"].endswith(";"):
46+
if self._api[index]["class"] and \
47+
not self._api[index]["class"].endswith(";"):
4748
self._api[index]["class"] += ";"
4849

4950
# Check if the return type misses a semicolon at the end.

0 commit comments

Comments
 (0)