File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2149,15 +2149,15 @@ const (
2149
2149
// CustomRepoButton a config of CustomRepoButton
2150
2150
type CustomRepoButton struct {
2151
2151
Title string `yaml:"title"` // max length: 20
2152
- Typ CustomRepoButtonType `yaml:"type"`
2152
+ Type CustomRepoButtonType `yaml:"type"`
2153
2153
Link string `yaml:"link"`
2154
2154
Content string `yaml:"content"`
2155
2155
RenderedContent string `yaml:"-"`
2156
2156
}
2157
2157
2158
2158
// IsLink check if it's a link button
2159
2159
func (b CustomRepoButton ) IsLink () bool {
2160
- return b .Typ != CustomRepoButtonTypeContent
2160
+ return b .Type != CustomRepoButtonTypeContent
2161
2161
}
2162
2162
2163
2163
// LoadCustomRepoButton by config
@@ -2193,7 +2193,7 @@ func CustomRepoButtonConfigVaild(cfg string) (bool, error) {
2193
2193
if len (btn .Title ) > 20 {
2194
2194
return false , nil
2195
2195
}
2196
- if btn .Typ != CustomRepoButtonTypeContent && len (btn .Link ) == 0 {
2196
+ if btn .Type != CustomRepoButtonTypeContent && len (btn .Link ) == 0 {
2197
2197
return false , nil
2198
2198
}
2199
2199
}
You can’t perform that action at this time.
0 commit comments