Skip to content
Snippets Groups Projects
Commit 7cb35f29 authored by ale's avatar ale
Browse files

Oops, fix a couple of obvious bugs

parent c4d01410
No related branches found
No related tags found
No related merge requests found
Pipeline #60853 passed
...@@ -52,11 +52,12 @@ func parseModSec(w io.Writer, line []byte) bool { ...@@ -52,11 +52,12 @@ func parseModSec(w io.Writer, line []byte) bool {
return true return true
} }
func writeLine(w io.Writer, line byte) error { func writeLine(w io.Writer, line []byte) error {
if _, err := w.Write(line); err != nil { if _, err := w.Write(line); err != nil {
return err return err
} }
return io.WriteString(w, "\n") _, err := io.WriteString(w, "\n")
return err
} }
func main() { func main() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment