]> granicus.if.org Git - python/commitdiff
Remove the else-clause because the conditions are no longer mutually exclusive.
authorRaymond Hettinger <python@rcn.com>
Sat, 17 Aug 2013 09:39:46 +0000 (02:39 -0700)
committerRaymond Hettinger <python@rcn.com>
Sat, 17 Aug 2013 09:39:46 +0000 (02:39 -0700)
Objects/setobject.c

index da3b95555f0eed6489e8e6c90c75a845770ab087..0db7e885e9dbb0306c17fac6c62c54d903dd7aa5 100644 (file)
@@ -140,7 +140,7 @@ set_lookkey(PySetObject *so, PyObject *key, Py_hash_t hash)
                 return set_lookkey(so, key, hash);
             }
         }
-        else if (entry->key == dummy && freeslot == NULL)
+        if (entry->key == dummy && freeslot == NULL)
             freeslot = entry;
     }
     return entry;