Skip to content

Commit d2fed4f

Browse files
committed
Mark internal computed properties properly
1 parent 770f5db commit d2fed4f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Sources/NIORedis/Data/RedisData.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,25 +53,25 @@ extension RedisData {
5353
}
5454

5555
/// Extracts the binary data from a Redis BulkString
56-
public var data: Data? {
56+
var data: Data? {
5757
guard case .bulkString(let data) = self else { return nil }
5858
return data
5959
}
6060

6161
/// Extracts an array type from this data
62-
public var array: [RedisData]? {
62+
var array: [RedisData]? {
6363
guard case .array(let array) = self else { return nil }
6464
return array
6565
}
6666

6767
/// Extracts an array type from this data
68-
public var int: Int? {
68+
var int: Int? {
6969
guard case .integer(let int) = self else { return nil }
7070
return int
7171
}
7272

7373
/// `true` if this data is null.
74-
public var isNull: Bool {
74+
var isNull: Bool {
7575
switch self {
7676
case .null: return true
7777
default: return false

0 commit comments

Comments
 (0)