Skip to content

Commit

Permalink
fix linting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
trinidz committed Aug 21, 2024
1 parent 3cbb050 commit ae3fee2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion server/ctrladmin/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -715,5 +715,10 @@ func (c *Controller) ServerExportOpmlPodcastDo(w http.ResponseWriter, r *http.Re
return
}

w.Write([]byte(outp))
if _, err := w.Write([]byte(outp)); err != nil {
sessAddFlashW(session, []string{"error writing opml file"})
sessLogSave(session, w, r)
http.Redirect(w, r, r.Referer(), http.StatusSeeOther)
return
}
}

0 comments on commit ae3fee2

Please sign in to comment.