Skip to content

Commit 7f03fd3

Browse files
authored
Merge pull request #34 from unv-unv/localize-value-empty-refactoring
Refactoring usage of LocalizeValue.empty()
2 parents a85838f + 22ce08f commit 7f03fd3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python-impl/src/main/java/com/jetbrains/python/impl/inspections/unresolvedReference/PyUnresolvedReferencesInspection.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -558,10 +558,10 @@ else if (canonicalName.equals(ignored)) {
558558
// TODO: mark the node so that future references pointing to it won't result in a error, but in a warning
559559
}
560560
}
561-
if (reference instanceof PsiReferenceEx referenceEx && description == LocalizeValue.empty()) {
561+
if (reference instanceof PsiReferenceEx referenceEx && description.isEmpty()) {
562562
description = LocalizeValue.localizeTODO(referenceEx.getUnresolvedDescription());
563563
}
564-
if (description == LocalizeValue.empty()) {
564+
if (description.isEmpty()) {
565565
boolean markedQualified = false;
566566
if (element instanceof PyQualifiedExpression) {
567567
// TODO: Add __qualname__ for Python 3.3 to the skeleton of <class 'object'>, introduce a pseudo-class skeleton for

0 commit comments

Comments
 (0)