(refs #1491)Code format

This commit is contained in:
Naoki Takezoe
2017-03-14 12:27:39 +09:00
parent 2cb29654e9
commit 5b68ca1416
2 changed files with 3 additions and 3 deletions

View File

@@ -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))

View File

@@ -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}"
/**