diff --git a/grails-app/services/io/xh/hoist/alertbanner/AlertBannerService.groovy b/grails-app/services/io/xh/hoist/alertbanner/AlertBannerService.groovy index 316ed84f..c62cd9d1 100644 --- a/grails-app/services/io/xh/hoist/alertbanner/AlertBannerService.groovy +++ b/grails-app/services/io/xh/hoist/alertbanner/AlertBannerService.groovy @@ -102,10 +102,9 @@ class AlertBannerService extends BaseService { // Implementation //----------------------------- private void readFromSpec() { - def conf = configService.getMap('xhAlertBannerConfig'), - newSpec = emptyAlert + def newSpec = emptyAlert - if (conf.enabled) { + if (configService.getMap('xhAlertBannerConfig').enabled) { def spec = getAlertSpec(), expires = spec.expires as Long