File tree Expand file tree Collapse file tree 3 files changed +4
-12
lines changed Expand file tree Collapse file tree 3 files changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -188,11 +188,7 @@ func Config(ctx *context.Context) {
188
188
ctx .Data ["EnableXORMLog" ] = setting .EnableXORMLog
189
189
ctx .Data ["LogSQL" ] = setting .Database .LogSQL
190
190
191
- editors , err := dev .GetEditors ()
192
- if err != nil {
193
- ctx .ServerError ("system_model.GetAllSettings" , err )
194
- return
195
- }
191
+ editors := dev .GetEditors ()
196
192
197
193
defaultEditorS := systemSettings .Get (dev .KeyDevDefaultEditors )
198
194
if defaultEditorS .SettingValue == "" {
Original file line number Diff line number Diff line change @@ -376,11 +376,7 @@ func Appearance(ctx *context.Context) {
376
376
return forms .IsUserHiddenCommentTypeGroupChecked (commentTypeGroup , hiddenCommentTypes )
377
377
}
378
378
379
- editors , err := dev .GetEditors ()
380
- if err != nil {
381
- ctx .ServerError ("dev.GetEditors" , err )
382
- return
383
- }
379
+ editors := dev .GetEditors ()
384
380
385
381
myDefaultEditors , err := dev .GetUserDefaultEditorsWithFallback (ctx .Doer )
386
382
if err != nil {
Original file line number Diff line number Diff line change @@ -64,8 +64,8 @@ func GetEditorsByNames(names []string) []*Editor {
64
64
}
65
65
66
66
// GetEditors returns all editors
67
- func GetEditors () ( []Editor , error ) {
68
- return defaultEditors , nil
67
+ func GetEditors () []Editor {
68
+ return defaultEditors
69
69
}
70
70
71
71
func DefaultEditorsNames () string {
You can’t perform that action at this time.
0 commit comments