Skip to content

Commit

Permalink
style: format code with gofumpt and gofmt
Browse files Browse the repository at this point in the history
Format code with gofumpt and gofmt

This commit fixes the style issues introduced in 1a123a0 according to the output
from Gofumpt and Go fmt.

Details: https://app.deepsource.com/gh/zer-far/spurt/transform/c20f8fa6-22bd-4047-9bee-6cb0d46594fa/
  • Loading branch information
deepsource-autofix[bot] authored Jul 30, 2023
1 parent 1a123a0 commit f4731e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ func get() {
}

req.Header.Set("User-Agent", uarand.GetRandom())
req.Header.Add("Pragma", "no-cache") // used in case https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Pragma
req.Header.Add("Cache-Control", "no-store, no-cache") // creates more load on web server
req.Header.Add("Pragma", "no-cache") // used in case https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Pragma
req.Header.Add("Cache-Control", "no-store, no-cache") // creates more load on web server
req.Header.Set("Referer", referrers[rand.Intn(len(referrers))]+buildblock(rand.Intn(5)+5)) // uses random referer from list
req.Header.Set("Keep-Alive", string(rand.Intn(10)+100))
req.Header.Set("Connection", "keep-alive")
Expand Down

0 comments on commit f4731e7

Please sign in to comment.