summaryrefslogtreecommitdiff
path: root/redis/commands/json/decoders.py
blob: 0ee102a433102502f3a555727f42749969d168e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
def int_or_list(b):
    if isinstance(b, int):
        return b
    else:
        return b


def int_or_none(b):
    if b is None:
        return None
    if isinstance(b, int):
        return b