Skip to content

Commit b98a3b4

Browse files
committed
🐹 refactor: clean up message rendering in chat.go
Modified the rendering logic in `chat.go` by adjusting the structure for better readability and organization. This change enhances maintainability by clearly separating the return statement and the load tree function.
1 parent 72437cd commit b98a3b4

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

ā€Žcmd/vibeaura/chat.goā€Ž

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1312,9 +1312,10 @@ func (m *model) renderMessages() string {
13121312
m.lastViewportWidth = m.viewport.Width
13131313
m.lastMessageCount = len(m.messages)
13141314

1315-
return sb.String()
1316-
}func (m *model) loadTree(path string) {
1317-
entries, _ := os.ReadDir(path)
1315+
return sb.String()
1316+
}
1317+
1318+
func (m *model) loadTree(path string) { entries, _ := os.ReadDir(path)
13181319
m.treeEntries = nil
13191320
for _, e := range entries {
13201321
if !strings.HasPrefix(e.Name(), ".") || e.Name() == ".env" {

0 commit comments

Comments
Ā (0)