Skip to content

Commit

Permalink
chore: improve code style
Browse files Browse the repository at this point in the history
  • Loading branch information
zyxxoo committed Aug 6, 2021
1 parent 107135f commit a4e4cc9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ public Id projectAddGraphs(Id id, Set<String> graphs) {
int oldSize = sourceGraphs.size();
sourceGraphs.addAll(graphs);
// Return if there is none graph been added
if (sourceGraphs.size() <= oldSize) {
if (sourceGraphs.size() == oldSize) {
return id;
}
project.graphs(sourceGraphs);
Expand Down Expand Up @@ -549,7 +549,7 @@ public Id projectRemoveGraphs(Id id, Set<String> graphs) {
int oldSize = sourceGraphs.size();
sourceGraphs.removeAll(graphs);
// Return if there is none graph been removed
if (sourceGraphs.size() >= oldSize) {
if (sourceGraphs.size() == oldSize) {
return id;
}
project.graphs(sourceGraphs);
Expand Down

0 comments on commit a4e4cc9

Please sign in to comment.