commit | f7dd0e8796a2a1ca5f5adfe7c7552163717213a1 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Thu Apr 29 16:02:48 2021 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Fri Apr 30 15:36:31 2021 +0200 |
tree | c58bade805d3de4f7d96a95c51035f3ac90e28d4 | |
parent | 4000ff04482142c0531708d0ac14f87bf30288f4 [diff] |
CLEANUP: map: slightly reorder the add map function The function uses two distinct code paths for single the key/value pair and multiple pairs inserted as payload, each with a copy-paste of the error handling. Let's modify the loop to factor them out.