Drop unnecessary type conversions
This commit is contained in:
parent
f6520727a3
commit
705f3f1372
8 changed files with 16 additions and 16 deletions
|
@ -80,12 +80,12 @@ func (r *RootCAs) Set(value string) error {
|
|||
|
||||
// Get return the RootCAs list
|
||||
func (r *RootCAs) Get() interface{} {
|
||||
return RootCAs(*r)
|
||||
return *r
|
||||
}
|
||||
|
||||
// SetValue sets the RootCAs with val
|
||||
func (r *RootCAs) SetValue(val interface{}) {
|
||||
*r = RootCAs(val.(RootCAs))
|
||||
*r = val.(RootCAs)
|
||||
}
|
||||
|
||||
// Type is type of the struct
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue