Remove a stupid sanity check that is not always correct anyway

This commit is contained in:
Josh Klar 2018-10-07 04:51:31 -07:00
parent 50a834a9f0
commit 7d02786959
No known key found for this signature in database
GPG Key ID: 220F99BD7DB7A99E

View File

@ -59,8 +59,6 @@ assert len(user_keymap.keymap), 'Keymap must contain at least one layer'
for lidx, layer in enumerate(user_keymap.keymap):
assert len(layer), 'Layer {} must contain at least one row'.format(lidx)
assert all(len(row) for row in layer), 'Layer {} must not contain empty rows'.format(lidx)
assert all(len(row) == len(layer[0]) for row in user_keymap.keymap), \
'All rows in layer {} must be of the same length'.format(lidx)
for ridx, row in enumerate(layer):
for cidx, key in enumerate(row):