Skip to content

Commit

Permalink
fixed deps and linting
Browse files Browse the repository at this point in the history
  • Loading branch information
oliveromahony committed Jun 9, 2023
1 parent ac52f08 commit d462602
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/core/nginx.go
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,7 @@ func runtimeFromConfigure(configure []string) []string {
// AccessLogs returns a list of access logs in the config
func AccessLogs(p *proto.NginxConfig) map[string]string {
var found = make(map[string]string)
var name := ""
name := ""

for _, accessLog := range p.GetAccessLogs().GetAccessLog() {
name = strings.Split(accessLog.GetName(), " ")[0]
Expand All @@ -830,7 +830,7 @@ func AccessLogs(p *proto.NginxConfig) map[string]string {
// ErrorLogs returns a list of error logs in the config
func ErrorLogs(p *proto.NginxConfig) map[string]string {
var found = make(map[string]string)
var name := ""
name := ""

for _, errorLog := range p.GetErrorLogs().GetErrorLog() {
name = strings.Split(errorLog.GetName(), " ")[0]
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d462602

Please sign in to comment.