Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
exekias committed Aug 2, 2018
1 parent 72fbaf5 commit 0b3515e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ Options:
sets the file extension to scan for. (default ".go")
-license string
sets the license type to check: ASL2, Elastic (default "ASL2")
```

## Contributing
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func main() {
func run(args []string, license string, exclude []string, ext string, dry bool, out io.Writer) error {
header, ok := Headers[license]
if !ok {
return &Error{err: fmt.Errorf("unkown license: %s", license), code: errUnknownLicense}
return &Error{err: fmt.Errorf("unknown license: %s", license), code: errUnknownLicense}
}

var headerBytes []byte
Expand Down
2 changes: 1 addition & 1 deletion main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ testdata/x-pack/wrong.go: is missing the license header
dry: false,
},
want: 7,
err: &Error{err: errors.New("unkown license: foo"), code: 7},
err: &Error{err: errors.New("unknown license: foo"), code: 7},
},
{
name: "Run with default mode rewrites the source files",
Expand Down

0 comments on commit 0b3515e

Please sign in to comment.