Skip to content

Commit

Permalink
Expression is always present in rules #74
Browse files Browse the repository at this point in the history
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
  • Loading branch information
pombredanne committed May 2, 2018
1 parent fc3283e commit 10724b0
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/licensedcode/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -655,10 +655,6 @@ def __attrs_post_init__(self, *args, **kwargs):
raise Exception(message)

# build expression from available data if not present
if not self.license_expression:
kw = self.license_choice and ' OR ' or ' AND '
self.license_expression = kw.join(self.licenses).strip()

if self.license_expression:
try:
expression = self.licensing.parse(self.license_expression)
Expand Down

0 comments on commit 10724b0

Please sign in to comment.