Skip to content

Commit

Permalink
Reverse theme required version compatibility check (#1747)
Browse files Browse the repository at this point in the history
Signed-off-by: johnniang <[email protected]>
  • Loading branch information
JohnNiang authored Mar 14, 2022
1 parent 1713be8 commit 628eb2f
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,7 @@ public ThemeProperty attemptToAdd(ThemeProperty newProperty) {
}

// 2. check version compatibility
// Not support current halo version.
if (checkThemePropertyCompatibility(newProperty)) {
if (!checkThemePropertyCompatibility(newProperty)) {
throw new ThemeNotSupportException(
"当前主题仅支持 Halo " + newProperty.getRequire() + " 及以上的版本");
}
Expand Down

0 comments on commit 628eb2f

Please sign in to comment.