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 67fba18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions comid/measurement.go
Original file line number Diff line number Diff line change
Expand Up @@ -437,8 +437,8 @@ func (o Mval) Valid() error {
o.UEID == nil &&
o.UUID == nil &&
o.IntegrityRegisters == nil &&
o.Extensions.IsEmpty() {
return fmt.Errorf("no measurement value set")
o.Extensions.IsEmpty() {
return fmt.Errorf("no measurement value set")
}

if o.Ver != nil {
Expand Down

0 comments on commit 67fba18

Please sign in to comment.