Skip to content

Commit 500c048

Browse files
Unnecessary None provided to get() (#295)
1 parent 4d70c85 commit 500c048

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numcodecs/registry.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def get_codec(config):
2828
"""
2929
config = dict(config)
3030
codec_id = config.pop('id', None)
31-
cls = codec_registry.get(codec_id, None)
31+
cls = codec_registry.get(codec_id)
3232
if cls is None:
3333
raise ValueError('codec not available: %r' % codec_id)
3434
return cls.from_config(config)

0 commit comments

Comments
 (0)