Skip to content

Commit

Permalink
make tab actions non-fatal
Browse files Browse the repository at this point in the history
  • Loading branch information
Isaac Dawson authored and Isaac Dawson committed Sep 30, 2015
1 parent 6564ba3 commit 4026ead
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gcd.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ func (c *Gcd) GetTargets() ([]*ChromeTarget, error) {
func (c *Gcd) GetNewTargets(knownIds map[string]struct{}) ([]*ChromeTarget, error) {
resp, err := http.Get(c.apiEndpoint)
if err != nil {
return err
return nil, err
}
defer resp.Body.Close()

Expand Down Expand Up @@ -170,7 +170,7 @@ func (c *Gcd) GetNewTargets(knownIds map[string]struct{}) ([]*ChromeTarget, erro
func (c *Gcd) NewTab() (*ChromeTarget, error) {
resp, err := http.Get(c.apiEndpoint + "/new")
if err != nil {
return err
return nil, err
}
defer resp.Body.Close()

Expand Down

0 comments on commit 4026ead

Please sign in to comment.