Skip to content
This repository has been archived by the owner on Jul 21, 2020. It is now read-only.

Commit

Permalink
Fixed build warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jackcook committed Aug 9, 2016
1 parent 3f4d93d commit c4fa3db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions Pod/Classes/Routes/ChannelsRoutes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,7 @@ public class ChannelsRoutes {
:param: completion An optional copmletion block with the retrieved followers' data.
*/
public func getFollowersOfChannel(id: Int, page: Int = 0, completion: ((users: [BeamUser]?, error: BeamRequestError?) -> Void)?) {
var params = ["page": "\(page)"]

BeamRequest.request("/channels/\(id)/follow", params: params) { (json, error) in
BeamRequest.request("/channels/\(id)/follow", params: ["page": "\(page)"]) { (json, error) in
guard let users = json?.array else {
completion?(users: nil, error: error)
return
Expand Down
4 changes: 2 additions & 2 deletions Pod/Classes/Routes/UsersRoutes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ public class UsersRoutes {
:param: completion An optional completion block with retrieved channels' data.
*/
public func getFollowedChannelsByUser(id: Int, page: Int, completion: ((channels: [BeamChannel]?, error: BeamRequestError?) -> Void)?) {
var params = ["order": "online:desc,viewersCurrent:desc,viewersTotal:desc", "where": "suspended.eq.0", "page": "\(page)"]
let params = ["order": "online:desc,viewersCurrent:desc,viewersTotal:desc", "where": "suspended.eq.0", "page": "\(page)"]

BeamRequest.request("/users/\(id)/follows") { (json, error) in
BeamRequest.request("/users/\(id)/follows", params: params) { (json, error) in
guard let channels = json?.array else {
completion?(channels: nil, error: error)
return
Expand Down

0 comments on commit c4fa3db

Please sign in to comment.