Merge pull request #167 from benmanns/formatting-vetting
Formatting and Vetting
This commit is contained in:
commit
ef908ebb94
6 changed files with 37 additions and 40 deletions
|
@ -121,8 +121,6 @@ func (b *Builder) Run() error {
|
|||
b.BuildState.Finished = time.Now().UTC().Unix()
|
||||
return nil
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (b *Builder) setup() error {
|
||||
|
@ -514,7 +512,7 @@ func (b *Builder) writeProxyScript(dir string) error {
|
|||
// map ip address to localhost
|
||||
for _, container := range b.services {
|
||||
// create an entry for each port
|
||||
for port, _ := range container.NetworkSettings.Ports {
|
||||
for port := range container.NetworkSettings.Ports {
|
||||
proxyfile.Set(port.Port(), container.NetworkSettings.IPAddress)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,7 +31,8 @@ func (i *IRC) Connect() {
|
|||
c.AddHandler(irc.CONNECTED,
|
||||
func(conn *irc.Conn, line *irc.Line) {
|
||||
conn.Join(i.Channel)
|
||||
connected <- true})
|
||||
connected <- true
|
||||
})
|
||||
c.Connect(i.Server)
|
||||
<-connected
|
||||
i.ClientStarted = true
|
||||
|
@ -74,7 +75,6 @@ func (i *IRC) sendSuccess(context *Context) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
|
||||
func (i *IRC) send(channel string, message string) error {
|
||||
if !i.ClientStarted {
|
||||
i.Connect()
|
||||
|
|
|
@ -1,2 +1 @@
|
|||
package publish
|
||||
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
package template
|
||||
|
||||
import (
|
||||
"crypto/md5"
|
||||
"errors"
|
||||
"fmt"
|
||||
"html/template"
|
||||
"io"
|
||||
"crypto/md5"
|
||||
"strings"
|
||||
|
||||
"github.com/GeertJohan/go.rice"
|
||||
|
|
Loading…
Reference in a new issue