Skip to content

Commit

Permalink
Change UInt64 to Int
Browse files Browse the repository at this point in the history
  • Loading branch information
youming-lin committed Sep 18, 2017
1 parent daac5a9 commit 144a14b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ playground.xcworkspace
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
.build/
Packages/
Package.resolved

# CocoaPods
#
Expand Down
2 changes: 1 addition & 1 deletion .swift-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.1
3.1.1
4 changes: 2 additions & 2 deletions Sources/CredentialsGitHub/CredentialsGitHub.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright IBM Corporation 2016
* Copyright IBM Corporation 2016, 2017
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -218,7 +218,7 @@ public class CredentialsGitHub: CredentialsPluginProtocol {
}
*/
private func createUserProfile(from userDictionary: [String: Any]) -> UserProfile? {
guard let id = userDictionary["id"] as? UInt64 else {
guard let id = userDictionary["id"] as? Int else {
return nil
}

Expand Down
6 changes: 3 additions & 3 deletions Sources/CredentialsGitHub/CredentialsGitHubOptions.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright IBM Corporation 2016
* Copyright IBM Corporation 2016, 2017
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -14,8 +14,8 @@
* limitations under the License.
**/

// MARK CredentialsFacebookOptions
/// A list of options for authentication with Facebook.
// MARK CredentialsGitHubOptions
/// A list of options for authentication with GitHub.
public struct CredentialsGitHubOptions {
/// [GitHub access token scopes](https://developer.github.com/v3/oauth/#scopes)
public static let scopes = "scopes"
Expand Down

0 comments on commit 144a14b

Please sign in to comment.