Commit 518773a
committed
pkg/domain/infra/abi/play.go: fix two nilness issues
The first condition is checking an error where no error is returned and
the second is checking even though err == nil was matched above already
so we know the error is not nil here.
Then also replace os.IsNotExist(err) with errors.Is(err, os.ErrNotExist)
as that should be used for new code.
This should not change behavior in any way.
Signed-off-by: Paul Holzinger <pholzing@redhat.com>1 parent 04e8cd1 commit 518773a
1 file changed
+2
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
715 | 715 | | |
716 | 716 | | |
717 | 717 | | |
718 | | - | |
719 | | - | |
720 | | - | |
721 | 718 | | |
722 | 719 | | |
723 | 720 | | |
| |||
1632 | 1629 | | |
1633 | 1630 | | |
1634 | 1631 | | |
1635 | | - | |
| 1632 | + | |
1636 | 1633 | | |
1637 | 1634 | | |
1638 | 1635 | | |
| |||
1642 | 1639 | | |
1643 | 1640 | | |
1644 | 1641 | | |
1645 | | - | |
| 1642 | + | |
1646 | 1643 | | |
1647 | 1644 | | |
1648 | 1645 | | |
| |||
0 commit comments