Skip to content

Commit 33ea3fd

Browse files
committed
Rename a constant
1 parent caa511f commit 33ea3fd

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

hooks/jsonnet-lint-hook/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"github.com/cybozu-private/pre-commit-jsonnet/lib"
1313
)
1414

15-
const JSONNET_LINT_CMD = "jsonnet-lint"
15+
const jsonnetLintCmd = "jsonnet-lint"
1616

1717
type CmdResult struct {
1818
err error
@@ -34,7 +34,7 @@ func execJsonnetLint(f string, opts []string) error {
3434
args = append(args, opts...)
3535
args = append(args, "--")
3636
args = append(args, f)
37-
cmd := execabs.Command(JSONNET_LINT_CMD, args...)
37+
cmd := execabs.Command(jsonnetLintCmd, args...)
3838
cmd.Stderr = &stderr
3939
err := cmd.Run()
4040
if err != nil {
@@ -47,7 +47,7 @@ func execJsonnetLint(f string, opts []string) error {
4747
func main() {
4848
opts, files := lib.ParseArgs(os.Args[1:])
4949

50-
if _, err := execabs.LookPath(JSONNET_LINT_CMD); err != nil {
50+
if _, err := execabs.LookPath(jsonnetLintCmd); err != nil {
5151
log.Fatalln(err)
5252
}
5353

0 commit comments

Comments
 (0)