Skip to content

Commit

Permalink
style: format code with Gofumpt and Prettier
Browse files Browse the repository at this point in the history
This commit fixes the style issues introduced in db0c28f according to the output
from Gofumpt and Prettier.

Details: #2579
  • Loading branch information
deepsource-autofix[bot] authored Aug 14, 2024
1 parent db0c28f commit e28d450
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions hack/cspell/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ type Override struct {
}

type CspellConfig struct {
Import []string `json:"import"`
IgnorePaths []string `json:"ignorePaths"`
IgnoreWords []string `json:"ignoreWords,omitempty"`
IgnoreRegExpList []string `json:"ignoreRegExpList,omitempty"`
Overrides []Override `json:"overrides"`
Import []string `json:"import"`
IgnorePaths []string `json:"ignorePaths"`
IgnoreWords []string `json:"ignoreWords,omitempty"`
IgnoreRegExpList []string `json:"ignoreRegExpList,omitempty"`
Overrides []Override `json:"overrides"`
}

func main() {
Expand Down Expand Up @@ -108,8 +108,8 @@ func main() {

file, err := os.Open(cspellOutputFile)
if err != nil {
fmt.Printf("Error opening cspell output file: %v\n", err)
os.Exit(1)
fmt.Printf("Error opening cspell output file: %v\n", err)
os.Exit(1)

Check warning on line 112 in hack/cspell/main.go

View check run for this annotation

Codecov / codecov/patch

hack/cspell/main.go#L109-L112

Added lines #L109 - L112 were not covered by tests
}
defer file.Close()

Check warning on line 114 in hack/cspell/main.go

View check run for this annotation

Codecov / codecov/patch

hack/cspell/main.go#L114

Added line #L114 was not covered by tests

Expand Down

0 comments on commit e28d450

Please sign in to comment.