remove return

This commit is contained in:
xuwei-k
2017-04-02 15:34:28 +09:00
parent cfae6d76b2
commit 445bf1cc34

View File

@@ -952,7 +952,7 @@ object JGitUtil {
* @return the last modified commit of specified path * @return the last modified commit of specified path
*/ */
def getLastModifiedCommit(git: Git, startCommit: RevCommit, path: String): RevCommit = { def getLastModifiedCommit(git: Git, startCommit: RevCommit, path: String): RevCommit = {
return git.log.add(startCommit).addPath(path).setMaxCount(1).call.iterator.next git.log.add(startCommit).addPath(path).setMaxCount(1).call.iterator.next
} }
def getBranches(owner: String, name: String, defaultBranch: String, origin: Boolean): Seq[BranchInfo] = { def getBranches(owner: String, name: String, defaultBranch: String, origin: Boolean): Seq[BranchInfo] = {