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:
parent
d8ee0afda9
commit
4303cedde4
1 changed files with 2 additions and 3 deletions
5
third_party/nix/src/libexpr/get-drvs.cc
vendored
5
third_party/nix/src/libexpr/get-drvs.cc
vendored
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue