Reverse theme required version compatibility check (#1747)

Signed-off-by: johnniang <johnniang@fastmail.com>
pull/1749/head
John Niang 2022-03-14 21:12:05 +08:00 committed by GitHub
parent 1713be8daf
commit 628eb2f1ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -133,8 +133,7 @@ public class ThemeRepositoryImpl
}
// 2. check version compatibility
// Not support current halo version.
if (checkThemePropertyCompatibility(newProperty)) {
if (!checkThemePropertyCompatibility(newProperty)) {
throw new ThemeNotSupportException(
"当前主题仅支持 Halo " + newProperty.getRequire() + " 及以上的版本");
}