Skip to content

Commit e0ab4c7

Browse files
committed
fixed arg casting
1 parent 6869466 commit e0ab4c7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

options.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,17 +73,17 @@ func (arg Argument) Explain() string {
7373

7474
// String casts a value to a string and panics on failure.
7575
func (arg Argument) String() string {
76-
return *arg.Value.(*string)
76+
return arg.Value.(string)
7777
}
7878

7979
// Bool casts a value to a bool and panics on failure.
8080
func (arg Argument) Bool() bool {
81-
return *arg.Value.(*bool)
81+
return arg.Value.(bool)
8282
}
8383

8484
// Int casts a value to an int and panics on failure.
8585
func (arg Argument) Int() int {
86-
return *arg.Value.(*int)
86+
return arg.Value.(int)
8787
}
8888

8989
type sortArguments []*Argument

0 commit comments

Comments
 (0)