Skip to content

Commit 4d4e6b4

Browse files
Break long lines
1 parent 5f75ddd commit 4d4e6b4

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

pkg/diagnostics/diagnostics.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,11 @@ func (r *DiagnosticsRegistry) EnableServer(port int) {
4848
}()
4949
}
5050

51-
// Registers diagnostics source callback with a given name. Name will be used as a key and callback result as a value in JSON object
52-
// during composing diagnostics JSON. Note: function will override existing diagnostics source on attempt to register another one with the same name
51+
// Registers diagnostics source callback with a given name.
52+
// Name will be used as a key and callback result as a value in JSON object
53+
// during composing diagnostics JSON.
54+
// Note: function will override existing diagnostics source on attempt
55+
// to register another one with the same name.
5356
func (r *DiagnosticsRegistry) RegisterSource(name string, source func() string) {
5457
r.diagnosticsMutex.Lock()
5558
defer r.diagnosticsMutex.Unlock()

0 commit comments

Comments
 (0)