Update map->immutable check to be consistent with the rest of the file.
@@ -136,9 +136,7 @@ int s2n_map_add(struct s2n_map *map, struct s2n_blob *key, struct s2n_blob *valu
int s2n_map_put(struct s2n_map *map, struct s2n_blob *key, struct s2n_blob *value)
{
- if (map->immutable) {
- S2N_ERROR(S2N_ERR_MAP_IMMUTABLE);
- }
+ S2N_ERROR_IF(map->immutable, S2N_ERR_MAP_IMMUTABLE);
if (map->capacity < (map->size * 2)) {
/* Embiggen the map */
