Checks if Twitter keys are empty

This commit is contained in:
yago
2015-01-06 14:10:26 +01:00
parent ffa72bb22f
commit 08e5a6c85f
2 changed files with 19 additions and 9 deletions

View File

@ -180,4 +180,9 @@ function serialize_to_file(data, file)
})
file:write(serialized)
file:close()
end
-- Retruns true if the string is empty
function string:isempty()
return self == nil or self == ''
end