Skip to content

Commit

Permalink
Remove error that's always nil
Browse files Browse the repository at this point in the history
Signed-off-by: Keegan Witt <[email protected]>
  • Loading branch information
keeganwitt committed Jan 18, 2024
1 parent e83e06f commit f759da4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/sidecar/sidecar.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,12 @@ func New(configPath string, log logrus.FieldLogger) (*Sidecar, error) {
// Starts the workload API client to listen for new SVID updates
// When a new SVID is received on the updateChan, the SVID certificates
// are stored in disk and a restart signal is sent to the proxy's process
func (s *Sidecar) RunDaemon(ctx context.Context) error {
func (s *Sidecar) RunDaemon(ctx context.Context) {
s.run(ctx)

if s.config.ExitWhenJwtReady {
os.Exit(0)
}

return nil
}

func (s *Sidecar) run(ctx context.Context) {
Expand Down

0 comments on commit f759da4

Please sign in to comment.