Commit 883a80a
committed
chore(spdx-utils): Remove superfluous case distinctions for
The `is SpdxExpression` case covers `SpdxCompoundExpression`s and
`SpdxSingleLicenseExpression`s. As `SpdxCompoundExpressions` have at least
2 children, decomposition can never result in just a single element. This
leaves `SpdxSingleLicenseExpression` to handle, but these can only ever
by equal if they are of the same sub-type, which is already covered by
the first case distinction.
Signed-off-by: Sebastian Schuberth <sebastian@doubleopen.org>equals()
1 parent 7d47932 commit 883a80a
1 file changed
+0
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
525 | 525 | | |
526 | 526 | | |
527 | 527 | | |
528 | | - | |
529 | | - | |
530 | | - | |
531 | | - | |
532 | | - | |
533 | | - | |
534 | | - | |
535 | | - | |
536 | 528 | | |
537 | 529 | | |
538 | 530 | | |
| |||
590 | 582 | | |
591 | 583 | | |
592 | 584 | | |
593 | | - | |
594 | | - | |
595 | | - | |
596 | | - | |
597 | | - | |
598 | | - | |
599 | | - | |
600 | | - | |
601 | 585 | | |
602 | 586 | | |
603 | 587 | | |
| |||
639 | 623 | | |
640 | 624 | | |
641 | 625 | | |
642 | | - | |
643 | | - | |
644 | | - | |
645 | | - | |
646 | | - | |
647 | | - | |
648 | 626 | | |
649 | 627 | | |
650 | 628 | | |
| |||
0 commit comments