diff options
author | 2018-06-21 10:58:15 -0700 | |
---|---|---|
committer | 2018-06-21 10:59:24 -0700 | |
commit | 9594d5e8dc465bb4526a2f15a4b547de7e1324a7 (patch) | |
tree | 4d745b06f875ca7d2da6822e494816c85fd08e4f /src/main | |
parent | cbf33b778aa5353a11553ce590b51dac1a302a48 (diff) |
If a dictionary is used as a general set, the keys should be mapped to `True` instead of `None`.
dict has a get() method that defaults to `None`.
Checking for a key in the dictionary with get() will always return `None` in the given example. Using `True` is better.
RELNOTES: None.
PiperOrigin-RevId: 201551896
Diffstat (limited to 'src/main')
0 files changed, 0 insertions, 0 deletions