Skip to content

Commit

Permalink
Reverse theme required version compatibility check (halo-dev#1747)
Browse files Browse the repository at this point in the history
Signed-off-by: johnniang <johnniang@fastmail.com>
  • Loading branch information
JohnNiang authored and winar-jin committed Mar 24, 2022
1 parent cd59749 commit 7830d01
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 7830d01

Please sign in to comment.