add trailing newlines
This commit is contained in:
parent
b0b6dbeb1b
commit
afdf0cc2b4
@ -144,7 +144,7 @@ func resetUrlHashFile(codehash, code, sourcePath string) string {
|
||||
defer resp.Body.Close()
|
||||
body, err := ioutil.ReadAll(resp.Body)
|
||||
urlkey := string(body)
|
||||
data := fmt.Sprintf("%s\n%s", codehash, urlkey)
|
||||
data := fmt.Sprintf("%s\n%s\n", codehash, urlkey)
|
||||
ioutil.WriteFile(sourcePath, []byte(data), 0644)
|
||||
return urlkey
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user