defer used wisely

This commit is contained in:
Michele Prà
2024-09-27 18:14:41 +02:00
parent 8128edad43
commit 388c408080
+1 -2
View File
@@ -64,9 +64,8 @@ func New(name string, source string) *Stream {
stream := NewStream(source)
streamsMu.Lock()
defer streamsMu.Unlock()
streams[name] = stream
streamsMu.Unlock()
return stream
}