Skip to content

Commit

Permalink
FIX linter issue
Browse files Browse the repository at this point in the history
  • Loading branch information
HappyTobi committed Jan 17, 2024
1 parent df720f0 commit 9d3f36b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions trace/jsonFile.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@ import (

func requestTracesFromJsonFile(input string) ([]types.RequestTrace, error) {
fileData, err := os.Open(input)
defer fileData.Close()

if err != nil {
return nil, fmt.Errorf("failed to read input file: %v", err)
}

defer fileData.Close()

scanner := bufio.NewScanner(fileData)

var jsonLine map[string]interface{}

traces := make([]types.RequestTrace, 0)
Expand Down

0 comments on commit 9d3f36b

Please sign in to comment.