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 8ff9c70 according to the output
from Gofumpt and Prettier.

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

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

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 c57028a

Please sign in to comment.