chore: cleanup executor.go
This commit is contained in:
parent
c1508a0a65
commit
d1ec688c9a
12
lang/main.go
12
lang/main.go
|
|
@ -213,15 +213,3 @@ func filterLanguageFiles(files []os.DirEntry) []os.DirEntry {
|
|||
|
||||
return ret
|
||||
}
|
||||
|
||||
func parseAcceptLanguages(headerLanguage string) []string {
|
||||
acceptLanguages := make([]string, 0)
|
||||
|
||||
for _, lang := range strings.Split(headerLanguage, ",") {
|
||||
lang = strings.TrimSpace(lang)
|
||||
|
||||
acceptLanguages = append(acceptLanguages, lang)
|
||||
}
|
||||
|
||||
return acceptLanguages
|
||||
}
|
||||
|
|
|
|||
|
|
@ -234,8 +234,6 @@ func isLogEntryAllowedByACL(cfg *config.Config, user *acl.AuthenticatedUser, ent
|
|||
return acl.IsAllowedLogs(cfg, user, entry.Binding.Action)
|
||||
}
|
||||
|
||||
// filterLogsByACL builds a filtered list of logs in reverse-chronological order
|
||||
// that are visible to the user based on ACL rules.
|
||||
func (e *Executor) filterLogsByACL(cfg *config.Config, user *acl.AuthenticatedUser) []*InternalLogEntry {
|
||||
e.logmutex.RLock()
|
||||
defer e.logmutex.RUnlock()
|
||||
|
|
|
|||
Loading…
Reference in New Issue