Skip to content

Commit

Permalink
WIP: Fix ).collect weird error in Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
YarekTyshchenko committed Dec 12, 2018
1 parent 45605a4 commit 441130e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions github4s/shared/src/main/scala/github4s/api/Repos.scala
Original file line number Diff line number Diff line change
Expand Up @@ -191,22 +191,22 @@ class Repos[C, M[_]](
* @param headers optional user headers to include in the request
* @param owner of the repo
* @param repo name of the repo
* @param protected Setting to true returns only protected branches
* @param onlyProtected Setting to true returns only protected branches
* @return GHResponse[List[Branch]\] List of branches
*/
def listBranches(
accessToken: Option[String] = None,
headers: Map[String, String] = Map(),
owner: String,
repo: String,
`protected`: Option[Boolean] = None
onlyProtected: Option[Boolean] = None
): M[GHResponse[List[Branch]]] =
httpClient.get[List[Branch]](
accessToken,
s"repos/$owner/$repo/branches",
headers,
Map(
"protected" `protected`.map(_.toString),
"protected" onlyProtected.map(_.toString)
).collect {
case (key, Some(value)) key value
})
Expand Down

0 comments on commit 441130e

Please sign in to comment.