From de721885bd78afb19be8c774a42a6b10a6065eb8 Mon Sep 17 00:00:00 2001 From: Jimmy Date: Thu, 23 Nov 2023 12:28:53 -0600 Subject: [PATCH] run formatter --- app/org/maproulette/Config.scala | 4 +++- .../framework/controller/NotificationController.scala | 9 +++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/app/org/maproulette/Config.scala b/app/org/maproulette/Config.scala index 11c6efa7..47fb8d76 100644 --- a/app/org/maproulette/Config.scala +++ b/app/org/maproulette/Config.scala @@ -197,7 +197,9 @@ class Config @Inject() (implicit val configuration: Configuration) { this.config.getOptional[Int](Config.KEY_TASK_RESET).getOrElse(Config.DEFAULT_TASK_RESET) lazy val signIn: Boolean = this.config.getOptional[Boolean](Config.KEY_SIGNIN).getOrElse(Config.DEFAULT_SIGNIN) - lazy val systemNoticesUrl: String = this.config.getOptional[String](Config.KEY_SYSTEM_NOTICES_URL).getOrElse(Config.DEFAULT_SYSTEM_NOTICES_URL) + lazy val systemNoticesUrl: String = this.config + .getOptional[String](Config.KEY_SYSTEM_NOTICES_URL) + .getOrElse(Config.DEFAULT_SYSTEM_NOTICES_URL) //caching properties lazy val cacheType: String = diff --git a/app/org/maproulette/framework/controller/NotificationController.scala b/app/org/maproulette/framework/controller/NotificationController.scala index 27b02740..2b211ee6 100644 --- a/app/org/maproulette/framework/controller/NotificationController.scala +++ b/app/org/maproulette/framework/controller/NotificationController.scala @@ -120,7 +120,8 @@ class NotificationController @Inject() ( val url = config.systemNoticesUrl if (!url.isEmpty) { - wsClient.url(url) + wsClient + .url(url) .withHttpHeaders( "Accept" -> "application/json" ) @@ -143,7 +144,11 @@ class NotificationController @Inject() ( InternalServerError(Json.toJson(s"An error occurred: ${e.getMessage}")) } } else { - Future.successful(InternalServerError(Json.toJson("An error occurred: System notices not set up on this server"))) + Future.successful( + InternalServerError( + Json.toJson("An error occurred: System notices not set up on this server") + ) + ) } } }