Skip to content

Commit

Permalink
fix: linter and gosec rules deteted
Browse files Browse the repository at this point in the history
  • Loading branch information
kenriortega committed Nov 14, 2021
1 parent b2f214b commit ba17915
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions examples/otelp/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ func handler(w http.ResponseWriter, r *http.Request) {
}
}

// #nosec
func shouldExecute(percent int) bool {
return rand.Int()%100 < percent
}
Expand Down
5 changes: 4 additions & 1 deletion internal/proxy/handlers/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,10 @@ func (ph *ProxyHandler) ProxyGateway(
if err != nil {
logger.LogError(err.Error())
}
w.Write(bytes)
_, err = w.Write(bytes)
if err != nil {
logger.LogError(err.Error())
}

}
http.Handle(
Expand Down

0 comments on commit ba17915

Please sign in to comment.