From 572d9d7dafb33cadd0c7e601d04c3c37a4215f72 Mon Sep 17 00:00:00 2001 From: Giuseppe Date: Tue, 30 Oct 2018 10:58:57 +0100 Subject: [PATCH 1/2] Fix #380 --- session/module_param.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/session/module_param.go b/session/module_param.go index fb52745a..c342fedc 100644 --- a/session/module_param.go +++ b/session/module_param.go @@ -111,7 +111,7 @@ func (p ModuleParam) Get(s *Session) (error, interface{}) { rand.Read(hw) v = net.HardwareAddr(hw).String() default: - return fmt.Errorf("Uknown value for v"), nil + // Nothing special } return p.Validate(v) From 49eb83bec3a1b1dc161eacf395f4da39e94b8038 Mon Sep 17 00:00:00 2001 From: yungtravla Date: Tue, 30 Oct 2018 20:08:30 +1000 Subject: [PATCH 2/2] Update module_param.go --- session/module_param.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/session/module_param.go b/session/module_param.go index c342fedc..1f4b5838 100644 --- a/session/module_param.go +++ b/session/module_param.go @@ -110,8 +110,6 @@ func (p ModuleParam) Get(s *Session) (error, interface{}) { hw := make([]byte, 6) rand.Read(hw) v = net.HardwareAddr(hw).String() - default: - // Nothing special } return p.Validate(v)