File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -201,21 +201,17 @@ const (
201201
202202// HasRole returns if a role is not none
203203func (r Role ) HasRole () bool {
204- return r .String () != ""
205- }
206-
207- func (r Role ) String () string {
208- return string (r )
204+ return r .Role != ""
209205}
210206
211207// LocaleString returns the locale string name of the Status
212208func (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 )
214210}
215211
216212// LocaleHelper returns the locale string name of the Status
217213func (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" )
219215}
220216
221217// Comment represents a comment in commit and issue page.
You can’t perform that action at this time.
0 commit comments