Skip to content

Commit

Permalink
chore: improve render string performance (#2365)
Browse files Browse the repository at this point in the history
  • Loading branch information
appleboy committed May 9, 2020
1 parent 82b284f commit 6f3d96c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions render/text.go
Expand Up @@ -6,7 +6,6 @@ package render

import (
"fmt"
"io"
"net/http"
)

Expand Down Expand Up @@ -35,6 +34,6 @@ func WriteString(w http.ResponseWriter, format string, data []interface{}) (err
_, err = fmt.Fprintf(w, format, data...)
return
}
_, err = io.WriteString(w, format)
_, err = w.Write([]byte(format))
return
}

0 comments on commit 6f3d96c

Please sign in to comment.