From 4da7b0ccbd1b393613037f8ee5870d5660b36a84 Mon Sep 17 00:00:00 2001 From: =Corey Hulen Date: Wed, 3 Feb 2016 12:16:37 -0800 Subject: Fixing based on feedback --- api/command.go | 4 ++-- model/command.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api/command.go b/api/command.go index 6fcd46b61..63e51d655 100644 --- a/api/command.go +++ b/api/command.go @@ -28,7 +28,7 @@ func RegisterCommandProvider(newProvider CommandProvider) { commandProviders[newProvider.GetTrigger()] = newProvider } -func GetCommandProvidersProvider(name string) CommandProvider { +func GetCommandProvider(name string) CommandProvider { provider, ok := commandProviders[name] if ok { return provider @@ -104,7 +104,7 @@ func executeCommand(c *Context, w http.ResponseWriter, r *http.Request) { parts := strings.Split(command, " ") trigger := parts[0][1:] message := strings.Join(parts[1:], " ") - provider := GetCommandProvidersProvider(trigger) + provider := GetCommandProvider(trigger) if provider != nil { diff --git a/model/command.go b/model/command.go index 4a726b4ac..56d88f13c 100644 --- a/model/command.go +++ b/model/command.go @@ -134,7 +134,7 @@ func (o *Command) PreUpdate() { o.UpdateAt = GetMillis() } -func (o *Command) Sanatize() { +func (o *Command) Sanitize() { o.Token = "" o.CreatorId = "" o.Method = "" -- cgit v1.2.3-1-g7c22