Skip to content

Commit

Permalink
improve variable naming
Browse files Browse the repository at this point in the history
  • Loading branch information
chinmaysomani07 committed Feb 8, 2023
1 parent afb300c commit efdb8fe
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions internal/view/table.go
Expand Up @@ -100,14 +100,13 @@ func (t *Table) toggleWideCmd(evt *tcell.EventKey) *tcell.EventKey {
return nil
}
func (t *Table) importAsCSV(evt *tcell.EventKey) *tcell.EventKey {

var tableData [][]string
row := t.GetRowCount()
col := t.GetColumnCount()
rowCount := t.GetRowCount()
colCount := t.GetColumnCount()

for i := 0; i < row; i++ {
for i := 0; i < rowCount; i++ {
var row []string
for j := 0; j < col; j++ {
for j := 0; j < colCount; j++ {
row = append(row, t.GetCell(i, j).Text)
}
tableData = append(tableData, row)
Expand Down

0 comments on commit efdb8fe

Please sign in to comment.