Skip to content

Commit

Permalink
simplify error
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnN193 committed Oct 9, 2024
1 parent a5e9a2e commit 21550f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testhelper/integrationtesthelper.go
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ func integrationTimedMovementSensor(
) (s.TimedMovementSensor, error) {
// Return nil if movement sensor is not defined
if movementSensor["name"] == "" {
return nil, fmt.Errorf("movement sensor is undefined: %v", movementSensor["name"])
return nil, errors.New("movement sensor is undefined")
}

// Check that the required amount of movement sensor data is present and
Expand Down

0 comments on commit 21550f4

Please sign in to comment.