DisplayValue returns the value as it may be shown to the user.
()
| 172 | |
| 173 | // DisplayValue returns the value as it may be shown to the user. |
| 174 | func (o *Setting) DisplayValue() string { |
| 175 | if o.Sensitive && o.Value != "" { |
| 176 | return MaskedValue |
| 177 | } |
| 178 | return o.Value |
| 179 | } |
| 180 | |
| 181 | func (o *Setting) IsValid() bool { |
| 182 | if o.Type == SettingTypeBool { |
no outgoing calls
no test coverage detected