# HG changeset patch # User Waqas Hussain # Date 1269371237 -18000 # Node ID c186b4883b8d9a22039adbbe6c81dbd9af0af3d0 # Parent 4e4d0d899d9d4cbfc836528d2cadfb3d35d89501 util.sasl.digest-md5: Removed unnnecessary check (which included a nil global access). diff -r 4e4d0d899d9d -r c186b4883b8d util/sasl/digest-md5.lua --- 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