Skip to content

Commit

Permalink
updated webhook.Results methods to exported types
Browse files Browse the repository at this point in the history
  • Loading branch information
Harter, Nicholas (Contractor) authored and Harter, Nicholas (Contractor) committed Jun 15, 2017
1 parent b4d1df1 commit ddd5a4c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/caduceus/caduceus.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,11 @@ func caduceus(arguments []string) int {
// Attempt to obtain the current listener list from current system without having to wait for listener reregistration.
startChan := make(chan webhook.Result, 1)
webhookFactory.Start.GetCurrentSystemsHooks(startChan)
webhookStartResults := <- startChan
if webhookStartResults.err != nil {
logger.Error(webhookStartResults.err)
var webhookStartResults webhook.Result = <- startChan
if webhookStartResults.Error != nil {
logger.Error(webhookStartResults.Error)
} else {
webhookRegistry.Update(webhookStartResults.hooks)
webhookRegistry.Update(webhookStartResults.Hooks)
}

var (
Expand Down

0 comments on commit ddd5a4c

Please sign in to comment.