Commit d7240924 authored by David Symonds's avatar David Symonds

Clean up some more code after bug143 was fixed.

R=r
APPROVED=r
DELTA=6  (0 added, 5 deleted, 1 changed)
OCL=27708
CL=27708
parent 190a5408
...@@ -166,12 +166,7 @@ func GetMapInt(name string, key string) int { ...@@ -166,12 +166,7 @@ func GetMapInt(name string, key string) int {
var i int; var i int;
var ok bool; var ok bool;
workSync(func(state *exVars) { workSync(func(state *exVars) {
// This doesn't work: i, ok = state.getOrInitMapVar(name)[key]
// i, ok = state.getOrInitMapVar(name)[key];
// exvar.go:169: assignment count mismatch: 2 = 1
// Should it? Wrapping the method call in () doesn't help.
mv := state.getOrInitMapVar(name);
i, ok = mv[key];
}); });
return i return i
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment