fix: diff result table show added but overview show none (#200)

This commit is contained in:
vran
2022-05-22 15:32:24 +08:00
committed by GitHub
parent c5af11f68f
commit fa3dbb7e84
2 changed files with 18 additions and 2 deletions

View File

@@ -6,4 +6,12 @@ public enum DiffType {
public static boolean isModified(DiffType type) {
return type != null && type != NONE;
}
public boolean isAdded() {
return this == ADDED;
}
public boolean isNone() {
return this == NONE;
}
}