This commit is contained in:
9seconds
2021-03-10 17:18:53 +03:00
parent a34949f15c
commit 9aa56191f9
6 changed files with 24 additions and 24 deletions
+2 -2
View File
@@ -15,8 +15,8 @@ type Secret struct {
Host string
}
func (s *Secret) MarshalText() ([]byte, error) {
if s == nil {
func (s Secret) MarshalText() ([]byte, error) {
if s.Key == nil {
return nil, nil
}