commit | 20b21e2b8f0ee83fa3b2c6e9dbbbfea1646933e5 | [log] [tgz] |
---|---|---|
author | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | Sat Aug 22 20:12:42 2020 +0200 |
committer | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | Sat Aug 22 20:12:42 2020 +0200 |
tree | 0434c949147e282d09cf5380b9d63e4fbc6eada5 | |
parent | 47587c20b10526c679cd44b4dea8aa2cabe8a737 [diff] |
Scala: Stylistic improvements. Change-Id: I6f6cc25dd432d43e89e7bb54fa101be9da157754
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 @@ 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() }