summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2020-08-22 20:12:42 +0200
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2020-08-22 20:12:42 +0200
commit20b21e2b8f0ee83fa3b2c6e9dbbbfea1646933e5 (patch)
tree0434c949147e282d09cf5380b9d63e4fbc6eada5 /src
parent47587c20b10526c679cd44b4dea8aa2cabe8a737 (diff)
Scala: Stylistic improvements.
Change-Id: I6f6cc25dd432d43e89e7bb54fa101be9da157754
Diffstat (limited to 'src')
-rw-r--r--src/main/scala/eu/mulk/mulkcms2/cms/about/AboutResource.scala6
1 files changed, 3 insertions, 3 deletions
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()
}