Skip to content

Commit

Permalink
Replaced nested ifs with conjunctions.
Browse files Browse the repository at this point in the history
Signed-off-by: Priyanshu Thapliyal <[email protected]>
  • Loading branch information
Priyanshuthapliyal2005 committed Dec 25, 2024
1 parent e5debd3 commit 5a0ffef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion comid/measurement.go
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ func (o Mval) Valid() error {
o.UUID == nil &&
o.IntegrityRegisters == nil &&
o.Extensions.IsEmpty() {
return fmt.Errorf("no measurement value set")
return fmt.Errorf("no measurement value set")
}

if o.Ver != nil {
Expand Down

0 comments on commit 5a0ffef

Please sign in to comment.