summaryrefslogtreecommitdiff
path: root/vendor/github.com/microcosm-cc/bluemonday/helpers.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/microcosm-cc/bluemonday/helpers.go')
-rw-r--r--vendor/github.com/microcosm-cc/bluemonday/helpers.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/vendor/github.com/microcosm-cc/bluemonday/helpers.go b/vendor/github.com/microcosm-cc/bluemonday/helpers.go
index 2b03d7e7d..aa0b7b92d 100644
--- a/vendor/github.com/microcosm-cc/bluemonday/helpers.go
+++ b/vendor/github.com/microcosm-cc/bluemonday/helpers.go
@@ -222,11 +222,7 @@ func (p *Policy) AllowDataURIImages() {
}
_, err := base64.StdEncoding.DecodeString(url.Opaque[len(matched):])
- if err != nil {
- return false
- }
-
- return true
+ return err == nil
},
)
}