mirror of
https://github.com/gitbucket/gitbucket.git
synced 2026-01-05 07:09:56 +01:00
(refs #1491)Code format
This commit is contained in:
@@ -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))
|
||||
|
||||
@@ -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}"
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user