Skip to content

Commit

Permalink
Merge branch 'master' of github.com:abates/insteon
Browse files Browse the repository at this point in the history
  • Loading branch information
abates committed Jan 6, 2018
2 parents e80558a + 5267834 commit 14e3715
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
language: go

sudo: false

go:
- master

before_install:
- go get golang.org/x/tools/cmd/cover
- go get github.com/mattn/goveralls

script:
- go test -coverprofile=coverage.out -coverpkg=./... ./...
- $HOME/gopath/bin/goveralls -coverprofile=coverage.out -service=travis-ci
8 changes: 7 additions & 1 deletion cmd/ic/unlink.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,13 @@ func unlinkCmd(args []string, p *plm.PLM) (err error) {
removeable := make([]*insteon.Link, 0)
for _, link := range links {
if link.Address == addr {
removeable = append(removeable, link)
fmt.Printf("Cleaning up old link...")
err = plmDB.RemoveLinks(link)
if err == nil {
fmt.Printf("successful\n")
} else {
fmt.Printf("failed: %v\n", err)
}
}
}

Expand Down

0 comments on commit 14e3715

Please sign in to comment.