summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/exvar.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/lib/exvar.go b/src/lib/exvar.go
index 6b2aaeb7a..d96e40aae 100644
--- a/src/lib/exvar.go
+++ b/src/lib/exvar.go
@@ -166,12 +166,7 @@ func GetMapInt(name string, key string) int {
var i int;
var ok bool;
workSync(func(state *exVars) {
- // This doesn't work:
- // 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];
+ i, ok = state.getOrInitMapVar(name)[key]
});
return i
}