style(3p/nix): Minor style fix in DrvInfo::setMeta

Paired-With: Perry Lorier <isomer@tvl.fyi>
Change-Id: I0655ecc675239b3d90e5adc305c3f37c1a904cf5
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1181
Tested-by: BuildkiteCI
Reviewed-by: glittershark <grfn@gws.fyi>
This commit is contained in:
Vincent Ambo 2020-07-15 20:52:28 +01:00 committed by tazjin
parent d8ee0afda9
commit 4303cedde4

View file

@ -292,9 +292,8 @@ bool DrvInfo::queryMetaBool(const std::string& name, bool def) {
}
void DrvInfo::setMeta(const std::string& name, Value* v) {
getMeta();
Bindings* old = meta;
meta = Bindings::NewGC(old->size());
Bindings* old = getMeta();
meta = Bindings::NewGC(old->size() + 1);
Symbol sym = state->symbols.Create(name);
if (old != nullptr) {
for (auto i : *old) {