Commit afa8a13d authored by Jonny Schäfer's avatar Jonny Schäfer
Browse files

Simplified function webReadString

parent 04bbc636
Pipeline #187 skipped
......@@ -37,10 +37,5 @@ func webRead(url string) (content []byte) {
// webReadString returns the content of a http site or an empty string
// if an error occured
func webReadString(url string) string {
read := webRead(url)
if read != nil {
return string(read)
return ""
return string(webRead(url))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment