Skip to content

Commit 2423ad8

Browse files
committed
Fix warning
1 parent 42bad63 commit 2423ad8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

build.sbt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ organization := "io.github.gitbucket"
33
version := "1.10.0"
44
scalaVersion := "2.13.3"
55
gitbucketVersion := "4.35.0"
6+
scalacOptions := Seq("-deprecation", "-language:postfixOps", "-opt:l:method", "-feature")

src/main/scala/gitbucket/notifications/controller/NotificationsController.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ trait NotificationsControllerBase extends ControllerBase {
4747
val userName = params("userName")
4848
val disable = params.getAs[Boolean]("disable").getOrElse(false)
4949
updateEmailNotification(userName, disable)
50-
flash += "info" -> "Notification setting has been updated."
50+
flash.update("info", "Notification setting has been updated.")
5151
redirect(s"/${userName}/_notifications")
5252
})
5353

0 commit comments

Comments
 (0)