diff --git a/src/main/scala/gitbucket/core/controller/AccountController.scala b/src/main/scala/gitbucket/core/controller/AccountController.scala index 86866e5cd..714ae96bc 100644 --- a/src/main/scala/gitbucket/core/controller/AccountController.scala +++ b/src/main/scala/gitbucket/core/controller/AccountController.scala @@ -153,7 +153,7 @@ trait AccountControllerBase extends AccountManagementControllerBase { (for { account <- getAccountByUserName(userName) image <- account.image - } yield (account, image)) match{ + } yield (account, image)) match { case Some((account, image)) => response.setDateHeader("Last-Modified", account.updatedDate.getTime) RawData(FileUtil.getMimeType(image), new java.io.File(getUserUploadDir(userName), image)) diff --git a/src/main/scala/gitbucket/core/view/helpers.scala b/src/main/scala/gitbucket/core/view/helpers.scala index a167c8d73..9bbd996a8 100644 --- a/src/main/scala/gitbucket/core/view/helpers.scala +++ b/src/main/scala/gitbucket/core/view/helpers.scala @@ -228,8 +228,8 @@ object helpers extends AvatarImageProvider with LinkConverter with RequestCache def assets(implicit context: Context): String = s"${context.path}/assets" /** - * Returns the url to the path of assets. - */ + * Returns the url to the path of assets. + */ def assets(path: String)(implicit context: Context): String = s"${context.path}/assets${path}?${hashQuery}" /**