examples: corrections requested by gitmetalinter
Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
parent
6e8199e35d
commit
8657f385c4
|
@ -49,10 +49,10 @@ func checkTravis(robot *gobot.Robot) {
|
|||
fmt.Printf("Checking repo %s/%s\n", user, name)
|
||||
turnOn(robot, "blue")
|
||||
resp, err := http.Get(fmt.Sprintf("https://api.travis-ci.org/repos/%s/%s.json", user, name))
|
||||
defer resp.Body.Close()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
defer resp.Body.Close()
|
||||
body, err := ioutil.ReadAll(resp.Body)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
|
|
|
@ -78,7 +78,7 @@ func (c *conway) contact() {
|
|||
}
|
||||
|
||||
func (c *conway) rebirth() {
|
||||
fmt.Println("Welcome back", c.cell.Name, "!")
|
||||
fmt.Println("Welcome back", c.cell.Name(), "!")
|
||||
c.life()
|
||||
}
|
||||
|
||||
|
@ -95,7 +95,7 @@ func (c *conway) life() {
|
|||
}
|
||||
|
||||
func (c *conway) death() {
|
||||
fmt.Println(c.cell.Name, "died :(")
|
||||
fmt.Println(c.cell.Name(), "died :(")
|
||||
c.alive = false
|
||||
c.cell.SetRGB(255, 0, 0)
|
||||
c.cell.Stop()
|
||||
|
@ -111,7 +111,7 @@ func (c *conway) enoughContacts() bool {
|
|||
func (c *conway) birthday() {
|
||||
c.age++
|
||||
|
||||
fmt.Println("Happy birthday", c.cell.Name, "you are", c.age, "and had", c.contacts, "contacts.")
|
||||
fmt.Println("Happy birthday", c.cell.Name(), "you are", c.age, "and had", c.contacts, "contacts.")
|
||||
|
||||
if c.enoughContacts() {
|
||||
if !c.alive {
|
||||
|
|
Loading…
Reference in New Issue