Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
vit1251 committed Dec 17, 2024
1 parent 3efbacd commit b45fbc0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/msg/MessageTree.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func (self *MessageTree) RegisterMessage(m Message) {

func (self *MessageTree) Compact() {
var keys []string
for k, _ := range self.index {
for k := range self.index {
keys = append(keys, k)
}
log.Printf("keys = %+v", keys)
Expand Down
5 changes: 4 additions & 1 deletion scripts/make-report-fmt.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/bin/sh

go fmt ../...
SCRIPT_DIR="$(readlink -f $(dirname "$0"))"
SRC_DIR="$(dirname "${SCRIPT_DIR}")"

go fmt ${SRC_DIR}

0 comments on commit b45fbc0

Please sign in to comment.