pallets-eco / flask-debugtoolbar

A toolbar overlay for debugging Flask applications
https://flask-debugtoolbar.readthedocs.io
BSD 3-Clause "New" or "Revised" License
952 stars 146 forks source link

No need to specify custom default value if key not found #210

Closed jeffwidman closed 1 year ago

jeffwidman commented 1 year ago

The '' arg specifies a custom default value if the key isn't found. However, the default of None works fine for boolean testing:

>>> 'gzip' in [None]
False

I missed this when I originally reviewed https://github.com/pallets-eco/flask-debugtoolbar/pull/154.