Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: typo ouput -> output #89

Merged
merged 1 commit into from
Oct 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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()
}