Skip to content

Commit

Permalink
fix: extractInstructionFromJSON returns an error (#1082)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandear authored Oct 29, 2024
1 parent 7c29b56 commit 511e4e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ func extractInstructionFromJSON(line string, lineNumber int) (instruction, error
// Use the json.Unmarshal function to parse the JSON into the struct
var jsonInst JSONInstruction
if err := json.Unmarshal([]byte(line), &jsonInst); err != nil {
fmt.Println("Error parsing JSON:", err)
return instruction{}, fmt.Errorf("parsing json instruction: %w", err)
}

ins := instruction{
Expand Down

0 comments on commit 511e4e6

Please # to comment.