mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
style: optimize if-statement and assignment
This commit is contained in:
@@ -67,9 +67,8 @@ public class HgProjectSettings implements PersistentStateComponent<HgProjectSett
|
||||
}
|
||||
|
||||
public void setIgnoreWhitespacesInAnnotations(boolean ignoreWhitespacesInAnnotations) {
|
||||
final boolean changed = myState.myIgnoreWhitespacesInAnnotations != ignoreWhitespacesInAnnotations;
|
||||
myState.myIgnoreWhitespacesInAnnotations = ignoreWhitespacesInAnnotations;
|
||||
if (changed) {
|
||||
if (myState.myIgnoreWhitespacesInAnnotations != ignoreWhitespacesInAnnotations) {
|
||||
myState.myIgnoreWhitespacesInAnnotations = ignoreWhitespacesInAnnotations;
|
||||
myProject.getMessageBus().syncPublisher(VcsAnnotationRefresher.LOCAL_CHANGES_CHANGED).configurationChanged(HgVcs.getKey());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user