Skip to content

Commit cbc8706

Browse files
committed
NegatedBoolValue: rename some local variables for consistency
1 parent 74f4c96 commit cbc8706

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

git-sizer.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,21 @@ type NegatedBoolValue struct {
2323
value *bool
2424
}
2525

26-
func (b *NegatedBoolValue) Set(s string) error {
27-
v, err := strconv.ParseBool(s)
28-
*b.value = !v
26+
func (v *NegatedBoolValue) Set(s string) error {
27+
b, err := strconv.ParseBool(s)
28+
*v.value = !b
2929
return err
3030
}
3131

32-
func (b *NegatedBoolValue) Get() interface{} {
33-
return !*b.value
32+
func (v *NegatedBoolValue) Get() interface{} {
33+
return !*v.value
3434
}
3535

36-
func (b *NegatedBoolValue) String() string {
37-
if b == nil || b.value == nil {
36+
func (v *NegatedBoolValue) String() string {
37+
if v == nil || v.value == nil {
3838
return "true"
3939
} else {
40-
return strconv.FormatBool(!*b.value)
40+
return strconv.FormatBool(!*v.value)
4141
}
4242
}
4343

0 commit comments

Comments
 (0)