Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.

Commit 45969e7

Browse files
lint: adding comment
1 parent 81b5114 commit 45969e7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/datastreamer/main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -935,7 +935,7 @@ func (h *handler) handleReceivedDataStream(entry *datastreamer.FileEntry, client
935935
}
936936

937937
func printEntry(entry datastreamer.FileEntry, shouldPrintJson bool) {
938-
simpleEntry := make(map[string]any, 0)
938+
simpleEntry := make(map[string]any)
939939

940940
switch entry.Type {
941941
case state.EntryTypeBookMark:
@@ -1110,6 +1110,7 @@ func printJSON(item any) {
11101110
fmt.Println(string(jsonBytes))
11111111
}
11121112

1113+
// ColorfulFieldWidth specifies the padded width of the field name of the colorful output
11131114
const ColorfulFieldWidth = 25
11141115

11151116
func printColorful(entry map[string]any) {

0 commit comments

Comments
 (0)