1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-21 13:23:07 +01:00

fixes static errors

This commit is contained in:
Amir Raminfar
2025-04-21 11:11:21 -07:00
parent 4ebd0c3624
commit 4dfc0e3e59

View File

@@ -74,12 +74,10 @@ func (s *SSEWriter) Ping() error {
return err
}
func (s *SSEWriter) Close() error {
if s.w != nil {
return s.w.(io.Closer).Close()
func (s *SSEWriter) Close() {
if closer, ok := s.w.(io.Closer); ok && s.w != nil {
closer.Close()
}
return nil
}
func (s *SSEWriter) Message(data any) error {