Skip to content

Commit

Permalink
🐝 fix spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
aramprice committed Jul 23, 2024
1 parent 2ba414c commit 14941c3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions package_stemcell/packagers/vmdk_packager.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ type VmdkPackager struct {
BuildOptions package_parameters.VmdkPackageParameters
}

var ErrInterupt = errors.New("interrupt")
var ErrInterrupt = errors.New("interrupt")

type CancelWriter struct {
w io.Writer
Expand All @@ -43,7 +43,7 @@ type CancelWriter struct {
func (w *CancelWriter) Write(p []byte) (int, error) {
select {
case <-w.stop:
return 0, ErrInterupt
return 0, ErrInterrupt
default:
return w.w.Write(p)
}
Expand All @@ -57,7 +57,7 @@ type CancelReader struct {
func (r *CancelReader) Read(p []byte) (int, error) {
select {
case <-r.stop:
return 0, ErrInterupt
return 0, ErrInterrupt
default:
return r.r.Read(p)
}
Expand Down Expand Up @@ -221,7 +221,7 @@ func (c *VmdkPackager) ConvertVMX2OVA(vmx, ova string) error {
c.Debugf("received stop signall killing ovftool process")
cmd.Process.Kill() //nolint:errcheck
}
return ErrInterupt
return ErrInterrupt
case err := <-errCh:
if err != nil {
return fmt.Errorf(errFmt, err, stderr.String())
Expand Down

0 comments on commit 14941c3

Please sign in to comment.