mirror of
https://github.com/miniflux/v2.git
synced 2025-08-16 18:01:37 +00:00
fix: address minor issues detected by Go linters
This commit is contained in:
parent
febb7b1748
commit
31f0afe1ac
10 changed files with 31 additions and 25 deletions
|
@ -116,12 +116,12 @@ type Atom03Content struct {
|
|||
func (a *Atom03Content) Content() string {
|
||||
content := ""
|
||||
|
||||
switch {
|
||||
case a.Mode == "xml":
|
||||
switch a.Mode {
|
||||
case "xml":
|
||||
content = a.InnerXML
|
||||
case a.Mode == "escaped":
|
||||
case "escaped":
|
||||
content = a.CharData
|
||||
case a.Mode == "base64":
|
||||
case "base64":
|
||||
b, err := base64.StdEncoding.DecodeString(a.CharData)
|
||||
if err == nil {
|
||||
content = string(b)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue