Merge pull request #386 from HairyFotr/patch-4

Small cleanup using static analysis
This commit is contained in:
Naoki Takezoe
2014-05-31 17:26:23 +09:00
14 changed files with 24 additions and 26 deletions

View File

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