Skip to content

Commit

Permalink
fix(BACKEND-226): Added missing static modifier to autoIdentifier (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
portellaa authored Oct 21, 2019
1 parent 515628c commit 56d3306
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/YouClap/Firebase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ public enum Firebase {
private static let identifierAlphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"
private static var randomGenerator = SystemRandomNumberGenerator()

public var autoIdentifier: String {
public static var autoIdentifier: String {
return String((0..<Self.identifierLength).compactMap { _ -> Character? in
return Self.identifierAlphabet.randomElement(using: &Self.randomGenerator)
})
Expand Down

0 comments on commit 56d3306

Please sign in to comment.