We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 74f4c96 commit cbc8706Copy full SHA for cbc8706
1 file changed
git-sizer.go
@@ -23,21 +23,21 @@ type NegatedBoolValue struct {
23
value *bool
24
}
25
26
-func (b *NegatedBoolValue) Set(s string) error {
27
- v, err := strconv.ParseBool(s)
28
- *b.value = !v
+func (v *NegatedBoolValue) Set(s string) error {
+ b, err := strconv.ParseBool(s)
+ *v.value = !b
29
return err
30
31
32
-func (b *NegatedBoolValue) Get() interface{} {
33
- return !*b.value
+func (v *NegatedBoolValue) Get() interface{} {
+ return !*v.value
34
35
36
-func (b *NegatedBoolValue) String() string {
37
- if b == nil || b.value == nil {
+func (v *NegatedBoolValue) String() string {
+ if v == nil || v.value == nil {
38
return "true"
39
} else {
40
- return strconv.FormatBool(!*b.value)
+ return strconv.FormatBool(!*v.value)
41
42
43
0 commit comments