1
0
Fork 0
mirror of https://github.com/KingDuckZ/kamokan.git synced 2024-12-27 21:35:41 +00:00

Bug fix - extra not

This commit is contained in:
King_DuckZ 2017-06-18 14:51:40 +01:00
parent 74fa7231b6
commit 070c814387

View file

@ -177,7 +177,7 @@ namespace kamokan {
opt_string_list pastie_reply = m_redis->hmget(parToken, "pastie", "selfdes");
retval.pastie = (pastie_reply and not pastie_reply->empty() ? (*pastie_reply)[0] : opt_string());
opt_string selfdes = (pastie_reply and not pastie_reply->size() > 1 ? (*pastie_reply)[1] : opt_string());
opt_string selfdes = (pastie_reply and pastie_reply->size() > 1 ? (*pastie_reply)[1] : opt_string());
if (selfdes and string_conv<bool>(*selfdes)) {
const bool deleted = m_redis->del(parToken);