Skip to content
This repository has been archived by the owner on Oct 2, 2020. It is now read-only.

Commit

Permalink
Remove unused variable
Browse files Browse the repository at this point in the history
Summary: Noticed these were being declared but not used.  Removing them.

Test Plan: Tests pass
  • Loading branch information
willhug authored May 23, 2017
1 parent de2188d commit 40ed007
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions internal/mapstructure/decode_hooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,6 @@ func DecodeHookExec(
raw DecodeHookFunc,
from reflect.Type, to reflect.Type,
data interface{}) (interface{}, error) {
// Build our arguments that reflect expects
argVals := make([]reflect.Value, 3)
argVals[0] = reflect.ValueOf(from)
argVals[1] = reflect.ValueOf(to)
argVals[2] = reflect.ValueOf(data)

switch f := typedDecodeHook(raw).(type) {
case DecodeHookFuncType:
return f(from, to, data)
Expand Down

0 comments on commit 40ed007

Please sign in to comment.