Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jonny Schäfer
tubus
Commits
afa8a13d
Commit
afa8a13d
authored
Dec 11, 2015
by
Jonny Schäfer
Browse files
Simplified function webReadString
parent
04bbc636
Pipeline
#187
skipped
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
web.go
View file @
afa8a13d
...
...
@@ -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
))
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment