Skip to content

Commit becb37c

Browse files
committed
fix minor issues
Signed-off-by: Alok Kumar <[email protected]>
1 parent c05caf5 commit becb37c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/licensedcode/models.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2338,7 +2338,6 @@ def tokens(self):
23382338
self.text = remove_extra_phrase(self.text)
23392339

23402340
text = self.text
2341-
23422341
# We tag this rule as being a bare URL if it starts with a scheme and is
23432342
# on one line: this is used to determine a matching approach
23442343

@@ -2447,9 +2446,7 @@ def dump(self, rules_data_dir, **kwargs):
24472446
# other rule metadata, like debugging collection of required phrases
24482447
if kwargs:
24492448
metadata.update(kwargs)
2450-
2451-
# remove extra_phrase marker
2452-
content = remove_extra_phrase(self.text)
2449+
content = self.text
24532450
output = dumps_frontmatter(content=content, metadata=metadata)
24542451
with open(rule_file, 'w') as of:
24552452
of.write(output)

0 commit comments

Comments
 (0)