Skip to content

Commit

Permalink
Update client.go
Browse files Browse the repository at this point in the history
fix lint issue
  • Loading branch information
pmalhaire authored Jul 9, 2024
1 parent 54b2270 commit 1f85406
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ func (m *MqttAPI) client(c sobek.ConstructorCall) *sobek.Object {
} else {
clientConf.clientCertPath = clientCertPathValue.String()
}
if clientCertKeyPathValue := c.Argument(8); clientCertKeyPathValue == nil || sobek.IsUndefined(clientCertKeyPathValue) {
if clientCertKeyPathValue := c.Argument(8); clientCertKeyPathValue == nil ||

Check failure on line 156 in client.go

View workflow job for this annotation

GitHub Actions / lint

File is not `gofmt`-ed with `-s` (gofmt)
sobek.IsUndefined(clientCertKeyPathValue) {
clientConf.clientCertKeyPath = ""
} else {
clientConf.clientCertKeyPath = clientCertKeyPathValue.String()
Expand Down

0 comments on commit 1f85406

Please sign in to comment.