From 20b21e2b8f0ee83fa3b2c6e9dbbbfea1646933e5 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Sat, 22 Aug 2020 20:12:42 +0200 Subject: Scala: Stylistic improvements. Change-Id: I6f6cc25dd432d43e89e7bb54fa101be9da157754 --- src/main/scala/eu/mulk/mulkcms2/cms/about/AboutResource.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/scala') diff --git a/src/main/scala/eu/mulk/mulkcms2/cms/about/AboutResource.scala b/src/main/scala/eu/mulk/mulkcms2/cms/about/AboutResource.scala index 0d70f53..9cbe1b0 100644 --- a/src/main/scala/eu/mulk/mulkcms2/cms/about/AboutResource.scala +++ b/src/main/scala/eu/mulk/mulkcms2/cms/about/AboutResource.scala @@ -12,10 +12,10 @@ import javax.ws.rs.core.MediaType; class AboutResource { @ResourcePath("benki/about/index.html") - var index: Template = null; + var index: Template = _ @GET @Produces(Array(MediaType.TEXT_HTML)) - def getIndex(): TemplateInstance = - index.instance(); + def getIndex: TemplateInstance = + index.instance() } -- cgit v1.2.3