Skip to content

Commit c32f413

Browse files
Replaced nested ifs with conjunctions.
Signed-off-by: Priyanshu Thapliyal <[email protected]>
1 parent e5debd3 commit c32f413

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

comid/measurement.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -437,8 +437,8 @@ func (o Mval) Valid() error {
437437
o.UEID == nil &&
438438
o.UUID == nil &&
439439
o.IntegrityRegisters == nil &&
440-
o.Extensions.IsEmpty() {
441-
return fmt.Errorf("no measurement value set")
440+
o.Extensions.IsEmpty() {
441+
return fmt.Errorf("no measurement value set")
442442
}
443443

444444
if o.Ver != nil {

0 commit comments

Comments
 (0)