Skip to content

Commit

Permalink
Nilchecks
Browse files Browse the repository at this point in the history
Signed-off-by: Kimmo Lehto <[email protected]>
  • Loading branch information
kke committed Feb 10, 2024
1 parent ecb8b76 commit 764ebc4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions connectioninjectables.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,12 @@ func (c *ConnectionInjectables) initClient() error {
err = fmt.Errorf("configure client (%v): %w", c.clientConfigurer, err)
return
}
if c.Log() == nil {
if !c.HasLogger() {
c.SetLogger(c.repositories.loggerFactory(c.client))
}
c.injectLogger(c.client)
if c.Runner == nil {
c.Runner = exec.NewHostRunner(c.client, nil)
c.Runner = exec.NewHostRunner(c.client)
}
})
return err
Expand Down
2 changes: 1 addition & 1 deletion test/rig_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ func (s *ConnectedSuite) SetupSuite() {
} else {
s.fs = s.Host.Fsys()
}
tempDir, err := s.Host.Fsys().MkdirTemp("", "rigtest")
tempDir, err := s.fs.MkdirTemp("", "rigtest")
s.Require().NoError(err)
s.tempDir = tempDir
}
Expand Down

0 comments on commit 764ebc4

Please sign in to comment.