Skip to content

Commit 967cc54

Browse files
authored
Fix canonicalization scoring when library shares package name (#3551)
The code and the comment for the code are opposite.
1 parent 3e07e32 commit 967cc54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/model/canonicalization.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ abstract mixin class Canonicalization
5858
}
5959

6060
// Give a big boost if the library has the package name embedded in it.
61-
if (library.package.namePieces.intersection(library.namePieces).isEmpty) {
61+
if (library.package.namePieces.intersection(library.namePieces).isNotEmpty) {
6262
scoredCandidate._alterScore(1.0, _Reason.packageName);
6363
}
6464

0 commit comments

Comments
 (0)