Skip to content

Commit d1deff4

Browse files
committed
typo fix
1 parent 3d2f001 commit d1deff4

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

main.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const (
2020
// default value of string variables passed by CI
2121
ciDefaultString = `''`
2222
// default value of int variables passed by CI
23-
ciDefaultnt = -1
23+
ciDefaultInt = -1
2424
)
2525

2626
type args struct {
@@ -53,9 +53,9 @@ func newArgs() args {
5353
Profile: ciDefaultString,
5454
LocalPrefix: ciDefaultString,
5555
GithubActionOutput: false,
56-
ThresholdFile: ciDefaultnt,
57-
ThresholdPackage: ciDefaultnt,
58-
ThresholdTotal: ciDefaultnt,
56+
ThresholdFile: ciDefaultInt,
57+
ThresholdPackage: ciDefaultInt,
58+
ThresholdTotal: ciDefaultInt,
5959

6060
// Badge
6161
BadgeFileName: ciDefaultString,
@@ -95,15 +95,15 @@ func (a *args) overrideConfig(cfg testcoverage.Config) (testcoverage.Config, err
9595
cfg.LocalPrefix = a.LocalPrefix
9696
}
9797

98-
if !isCIDefaultnt(a.ThresholdFile) {
98+
if !isCIDefaultInt(a.ThresholdFile) {
9999
cfg.Threshold.File = a.ThresholdFile
100100
}
101101

102-
if !isCIDefaultnt(a.ThresholdPackage) {
102+
if !isCIDefaultInt(a.ThresholdPackage) {
103103
cfg.Threshold.Package = a.ThresholdPackage
104104
}
105105

106-
if !isCIDefaultnt(a.ThresholdPackage) {
106+
if !isCIDefaultInt(a.ThresholdPackage) {
107107
cfg.Threshold.Total = a.ThresholdTotal
108108
}
109109

@@ -185,7 +185,7 @@ func readConfig() (testcoverage.Config, error) {
185185

186186
func isCIDefaultString(v string) bool { return v == ciDefaultString }
187187

188-
func isCIDefaultnt(v int) bool { return v == ciDefaultnt }
188+
func isCIDefaultInt(v int) bool { return v == ciDefaultInt }
189189

190190
func escapeCiDefaultString(v string) string {
191191
if v == ciDefaultString {

0 commit comments

Comments
 (0)