Skip to content

Commit

Permalink
Update tpm/tpm.go
Browse files Browse the repository at this point in the history
Co-authored-by: Mariano Cano <mariano.cano@gmail.com>
  • Loading branch information
hslatman and maraino committed Jun 26, 2023
1 parent 8a4f670 commit ca29d42
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tpm/tpm.go
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,7 @@ func (t *TPM) close(ctx context.Context) error {
}

func (t *TPM) Available() (err error) {
ctx := context.Background()
_, err = t.Info(ctx)
_, err = t.Info(context.Background())
return

Check warning on line 295 in tpm/tpm.go

View check run for this annotation

Codecov / codecov/patch

tpm/tpm.go#L293-L295

Added lines #L293 - L295 were not covered by tests
}

Expand Down

0 comments on commit ca29d42

Please sign in to comment.