Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Tsotsi committed Jan 3, 2018
1 parent 317da25 commit 19300e9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions container.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,6 @@ func (c Container) Get(key interface{}) (value interface{}, ok bool) {
case ITEM_TYPE_FACTORY:
vv := reflect.ValueOf(v.Raw)
args := []reflect.Value{reflect.ValueOf(&c)}
//if v.rawInfo[0] > 0 {
// args = append(args, reflect.ValueOf(&c))
//}
resv := vv.Call(args)
v.Value = resv[0].Interface()
value = v.Value
Expand Down
2 changes: 1 addition & 1 deletion example/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

import (
"reflect"
"go-container"
"go_container"
"fmt"
)

Expand Down

0 comments on commit 19300e9

Please sign in to comment.