code cleanup
This commit is contained in:
parent
a79a5f87a0
commit
bfe15f794a
2 changed files with 4 additions and 3 deletions
|
@ -159,7 +159,7 @@ public class LmsSetupDAOImpl implements LmsSetupDAO {
|
|||
}
|
||||
return lmsSetup.updateTime.equals(record.getUpdateTime());
|
||||
} catch (final Exception e) {
|
||||
log.error("Failed to check snyc on LmsSetup: {}", lmsSetup);
|
||||
log.error("Failed to check sync on LmsSetup: {}", lmsSetup);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -93,8 +93,9 @@ public class LmsAPIServiceImpl implements LmsAPIService {
|
|||
log.debug("LmsSetup changed. Update cache by removing eventually used references");
|
||||
}
|
||||
|
||||
final LmsAPITemplate removedTemplate = this.cache
|
||||
.remove(new CacheKey(lmsSetup.getModelId(), 0));
|
||||
final LmsAPITemplate removedTemplate = this.cache.remove(
|
||||
new CacheKey(lmsSetup.getModelId(), 0));
|
||||
|
||||
if (removedTemplate != null) {
|
||||
removedTemplate.clearCourseCache();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue