Skip to content

Commit 21fc0a4

Browse files
committed
Make extension properties on RESPValue to all be public
1 parent f3a9b32 commit 21fc0a4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/NIORedis/RESP/RESPValue.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,21 +69,21 @@ extension RESPValue {
6969
}
7070

7171
/// Extracted value from `integer` representations.
72-
var int: Int? {
72+
public var int: Int? {
7373
guard case .integer(let int) = self else { return nil }
7474
return int
7575
}
7676

7777
/// Returns `true` if this data is a "null" value from Redis.
78-
var isNull: Bool {
78+
public var isNull: Bool {
7979
switch self {
8080
case .null: return true
8181
default: return false
8282
}
8383
}
8484

8585
/// Extracted value from `error` representations.
86-
var error: RedisError? {
86+
public var error: RedisError? {
8787
switch self {
8888
case .error(let error): return error
8989
default: return nil

0 commit comments

Comments
 (0)