File tree 1 file changed +3
-7
lines changed
1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -201,21 +201,17 @@ const (
201
201
202
202
// HasRole returns if a role is not none
203
203
func (r Role ) HasRole () bool {
204
- return r .String () != ""
205
- }
206
-
207
- func (r Role ) String () string {
208
- return string (r )
204
+ return r .Role != ""
209
205
}
210
206
211
207
// LocaleString returns the locale string name of the Status
212
208
func (r Role ) LocaleString (lang translation.Locale ) string {
213
- return lang .Tr ("repo.issues.role." + r .String () )
209
+ return lang .Tr ("repo.issues.role." + r .Role )
214
210
}
215
211
216
212
// LocaleHelper returns the locale string name of the Status
217
213
func (r Role ) LocaleHelper (lang translation.Locale ) string {
218
- return lang .Tr ("repo.issues.role." + r .String () + "_helper" )
214
+ return lang .Tr ("repo.issues.role." + r .Role + "_helper" )
219
215
}
220
216
221
217
// Comment represents a comment in commit and issue page.
You can’t perform that action at this time.
0 commit comments