mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-06 21:45:50 +01:00
Small cleanup using static analysis
This commit is contained in:
@@ -76,7 +76,7 @@ class GitBucketReceivePackFactory extends ReceivePackFactory[HttpServletRequest]
|
||||
|
||||
defining(request.paths){ paths =>
|
||||
val owner = paths(1)
|
||||
val repository = paths(2).replaceFirst("\\.git$", "")
|
||||
val repository = paths(2).stripSuffix(".git")
|
||||
|
||||
logger.debug("repository:" + owner + "/" + repository)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user