mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 15:20:54 +00:00
Update: Redundant semicolon disableEscapeHTML
This commit is contained in:
parent
ad6c97ec1b
commit
b80b7b06fc
@ -17,8 +17,8 @@ package logs
|
|||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"time"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@ -53,10 +53,9 @@ func (r *AccessLogRecord) json() ([]byte, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func disableEscapeHTML(i interface{}) {
|
func disableEscapeHTML(i interface{}) {
|
||||||
e, ok := i.(interface {
|
if e, ok := i.(interface {
|
||||||
SetEscapeHTML(bool)
|
SetEscapeHTML(bool)
|
||||||
});
|
}); ok {
|
||||||
if ok {
|
|
||||||
e.SetEscapeHTML(false)
|
e.SetEscapeHTML(false)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user