Skip to content

Commit

Permalink
cleanup strip code
Browse files Browse the repository at this point in the history
Signed-off-by: Jade Abraham <[email protected]>
  • Loading branch information
jabraham17 committed Dec 16, 2024
1 parent 1c89788 commit 3cc699f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tools/chplcheck/src/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,7 @@ def rules_and_descriptions(self):
for rule in itertools.chain(
self.BasicRules, self.AdvancedRules, self.LocationRules
):
doc = rule.check_func.__doc__
if doc is None:
doc = ""
doc = rule.check_func.__doc__ or ""

# if there is an escaped underscore, remove the escape
doc = doc.replace("\\_", "_")
Expand Down

0 comments on commit 3cc699f

Please sign in to comment.