Changeset

2936:c186b4883b8d

util.sasl.digest-md5: Removed unnnecessary check (which included a nil global access).
author Waqas Hussain <waqas20@gmail.com>
date Wed, 24 Mar 2010 00:07:17 +0500
parents 2935:4e4d0d899d9d
children 2937:9380838a19dc
files util/sasl/digest-md5.lua
diffstat 1 files changed, 0 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/util/sasl/digest-md5.lua	Wed Mar 24 00:05:55 2010 +0500
+++ b/util/sasl/digest-md5.lua	Wed Mar 24 00:07:17 2010 +0500
@@ -35,8 +35,6 @@
 	local function serialize(message)
 		local data = ""
 
-		if type(message) ~= "table" then error("serialize needs an argument of type table.") end
-
 		-- testing all possible values
 		if message["realm"] then data = data..[[realm="]]..message.realm..[[",]] end
 		if message["nonce"] then data = data..[[nonce="]]..message.nonce..[[",]] end