Skip to content

Commit

Permalink
Missed a pylint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Levi Govaerts committed Mar 19, 2020
1 parent 866857a commit c07a899
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jsonnet_docblock_parser/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def parseFile(file: str):

def _parse_code(text):
pattern = re.findall(PATTERNS["code"], text)
return pattern[0] if len(pattern) > 0 else ""
return pattern[0] if pattern else ""

def _is_part_of_docblock(line):
pattern = re.compile(PATTERNS["docblock"]) # Look for /* * and /** and */
Expand Down

0 comments on commit c07a899

Please sign in to comment.