aboutsummaryrefslogtreecommitdiff
path: root/object/environment.go
diff options
context:
space:
mode:
Diffstat (limited to 'object/environment.go')
-rw-r--r--object/environment.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/object/environment.go b/object/environment.go
index 4b37749..bd89056 100644
--- a/object/environment.go
+++ b/object/environment.go
@@ -1,20 +1,20 @@
package object
func NewEnvironment() *Environment {
- s := make(map[string]Object)
- return &Environment{store: s}
+ s := make(map[string]Object)
+ return &Environment{store: s}
}
type Environment struct {
- store map[string]Object
+ store map[string]Object
}
func (e *Environment) Get(name string) (Object, bool) {
- obj, ok := e.store[name]
- return obj, ok
+ obj, ok := e.store[name]
+ return obj, ok
}
func (e *Environment) Set(name string, val Object) Object {
- e.store[name] = val
- return val
+ e.store[name] = val
+ return val
}