Skip to content

Commit

Permalink
Stricter to-native conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
czechboy0 committed Feb 17, 2016
1 parent 6848819 commit 4b4a31a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion Redbird.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = "Redbird"
s.version = "0.2.0"
s.version = "0.2.1"
s.summary = "Pure-Swift Redis client. OS X and Linux ready."

s.description = <<-DESC
Expand Down
4 changes: 0 additions & 4 deletions Sources/Redbird/ExternalTypeConversions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ extension RespObject {
switch self.respType {
case .SimpleString: return (self as! SimpleString).content
case .BulkString: return (self as! BulkString).content
case .Error: return (self as! Error).content
case .Integer: return String((self as! Integer).intContent)
default: throw RedbirdError.WrongNativeTypeUnboxing(self, "String")
}
}
Expand All @@ -37,8 +35,6 @@ extension RespObject {
switch self.respType {
case .SimpleString: return (self as! SimpleString).content
case .BulkString: return (self as! BulkString).content
case .Error: return (self as! Error).content
case .Integer: return String((self as! Integer).intContent)
case .NullBulkString: return nil
default: throw RedbirdError.WrongNativeTypeUnboxing(self, "MaybeString")
}
Expand Down

0 comments on commit 4b4a31a

Please sign in to comment.