mirror of
https://github.com/taigrr/bubbletea.git
synced 2026-04-02 02:59:09 -07:00
docs: fix lint issues in examples and tutorials (#759)
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
b2d2ac6504
commit
b80eb8303b
@@ -40,7 +40,7 @@ func (pw *progressWriter) Write(p []byte) (int, error) {
|
||||
}
|
||||
|
||||
func getResponse(url string) (*http.Response, error) {
|
||||
resp, err := http.Get(url)
|
||||
resp, err := http.Get(url) // nolint:gosec
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
@@ -64,7 +64,7 @@ func main() {
|
||||
fmt.Println("could not get response", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
defer resp.Body.Close()
|
||||
defer resp.Body.Close() // nolint:errcheck
|
||||
|
||||
// Don't add TUI if the header doesn't include content size
|
||||
// it's impossible see progress without total
|
||||
@@ -79,7 +79,7 @@ func main() {
|
||||
fmt.Println("could not create file:", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
defer file.Close()
|
||||
defer file.Close() // nolint:errcheck
|
||||
|
||||
pw := &progressWriter{
|
||||
total: int(resp.ContentLength),
|
||||
|
||||
Reference in New Issue
Block a user