Skip to content

Commit

Permalink
fix: typo ouput -> output (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
spdawson authored Oct 31, 2022
1 parent 00a3271 commit 610e056
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pkg/detectors/openapi/reportadder/reportadder.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,6 @@ func standardizeOperationType(input string) (output string) {
return operations.TypeOther
}

func standardizeOperationPath(input string) (ouput string) {
func standardizeOperationPath(input string) (output string) {
return regexpPathVariable.ReplaceAllString(input, "*")
}
File renamed without changes.
2 changes: 1 addition & 1 deletion pkg/scanner/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func Scan(rootDir string, FilesToScan []string, blamer blamer.Blamer, outputPath
file, err := os.OpenFile(outputPath, os.O_RDWR|os.O_TRUNC, 0666)

if err != nil {
return fmt.Errorf("fail opening ouput file %w", err)
return fmt.Errorf("fail opening output file %w", err)
}
defer file.Close()

Expand Down
6 changes: 3 additions & 3 deletions pkg/util/tmpfile/tmpfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ import (
var ErrCreateFailed = errors.New("failed to create file")

func Create(tmpDir string, ext string) string {
ouputFile, err := ioutil.TempFile(tmpDir, "*"+ext)
outputFile, err := ioutil.TempFile(tmpDir, "*"+ext)
if err != nil {
log.Fatal().Msgf("got create fail error %e %e", err, ErrCreateFailed)
}
ouputFile.Close()
outputFile.Close()

return ouputFile.Name()
return outputFile.Name()
}

0 comments on commit 610e056

Please sign in to comment.