Skip to content

Commit 414a4f2

Browse files
committed
style: use short if
1 parent 1f8c0e8 commit 414a4f2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

libvirt/domain.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,7 @@ func domainWaitForLeases(ctx context.Context, virConn *libvirt.Libvirt, domain l
7272
Delay: resourceStateDelay,
7373
}
7474

75-
_, err := stateConf.WaitForStateContext(ctx)
76-
if err != nil {
75+
if _, err := stateConf.WaitForStateContext(ctx); err != nil {
7776
return err
7877
}
7978

0 commit comments

Comments
 (0)