python: write action is unnecessary in some quick fixes

This commit is contained in:
peter
2016-11-16 09:20:04 +01:00
parent 589f3efc5a
commit 53210fe263
6 changed files with 46 additions and 5 deletions

View File

@@ -48,6 +48,11 @@ public class AddIgnoredRoleFix implements LocalQuickFix, LowPriorityAction {
return "Ignore undefined role";
}
@Override
public boolean startInWriteAction() {
return false;
}
@Override
public void applyFix(@NotNull Project project, @NotNull ProblemDescriptor descriptor) {
if (!myInspection.ignoredRoles.contains(myRole)) {