Skip to content

Commit

Permalink
Initialize slice to length 0
Browse files Browse the repository at this point in the history
  • Loading branch information
vegarsti committed Apr 8, 2024
1 parent 5616cc3 commit 1dfff2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion textract/textract.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ func ToLinesFromOCR(output *textract.DetectDocumentTextOutput) ([]box.Box, error
// fmt.Printf("%+v", rowMap)
// fmt.Printf("%+v", blocks)

boxes := make([]box.Box, words)
boxes := make([]box.Box, 0)
for _, cell := range blocks {
if *cell.BlockType != "WORD" {
continue
Expand Down

0 comments on commit 1dfff2f

Please sign in to comment.