Skip to content

Commit

Permalink
fix: satisfy linters
Browse files Browse the repository at this point in the history
A linter was introduced, so existing code needs to be made compliant
  • Loading branch information
jonkerj committed May 20, 2022
1 parent b18fd01 commit dc4899b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@ func New(remote string) (*IIO, error) {
w := bufio.NewWriter(conn)

i := &IIO{conn: conn, reader: r, writer: w}
i.fetchContext()

err = i.fetchContext()
if err != nil {
return nil, fmt.Errorf("error fetching context: %v", err)
}

return i, nil
}

Expand Down

0 comments on commit dc4899b

Please sign in to comment.