Refactor StartedListener

pull/137/head
ruibaby 2019-03-26 21:18:52 +08:00
parent 1d95969198
commit 39407aa8cf
1 changed files with 2 additions and 2 deletions

View File

@ -143,9 +143,9 @@ public class StartedListener implements ApplicationListener<ApplicationStartedEv
*/
private void initThemes() {
// Whether the blog is initialized
String isInstall = optionService.getByKeyOfNullable(BlogProperties.IS_INSTALL.getValue());
Boolean isInstall = optionService.getByProperty(BlogProperties.IS_INSTALL, Boolean.class, false);
try {
if (null == isInstall) {
if (!isInstall) {
File internalThemePath = new File(ResourceUtils.getURL("classpath:").getPath(), "templates/themes");
File[] internalThemes = internalThemePath.listFiles();
if (null != internalThemes) {