Skip to content

Commit b206366

Browse files
645: Fixed LiteralsFirstInComparisons
1 parent 58f32f9 commit b206366

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/com/magento/idea/magento2plugin/stubs/indexes/js/RequireJsIndex.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public class RequireJsIndex extends FileBasedIndexExtension<String, String> {
5656
for (final JSVariable jsVariable : jsVariableList) {
5757
final String name = jsVariable.getName();
5858

59-
if (name.equals("config")) {
59+
if ("config".equals(name)) {
6060
final JSObjectLiteralExpression config = PsiTreeUtil.getChildOfType(
6161
jsVariable,
6262
JSObjectLiteralExpression.class
@@ -143,7 +143,7 @@ private void parseConfigMap(
143143
public @NotNull FileBasedIndex.InputFilter getInputFilter() {
144144
return virtualFile ->
145145
virtualFile.getFileType().equals(JavaScriptFileType.INSTANCE)
146-
&& virtualFile.getName().equals("requirejs-config.js");
146+
&& "requirejs-config.js".equals(virtualFile.getName());
147147
}
148148

149149
@Override

0 commit comments

Comments
 (0)