File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -89,13 +89,16 @@ func (l *Linter) lintADoc(f *core.File) error {
8989}
9090
9191func callAdoc (text , exe string , attrs map [string ]string ) (string , error ) {
92- args := append (adocArgs , parseAttributes (attrs )... )
92+ args := adocArgs
93+
94+ args = append (args , parseAttributes (attrs )... )
9395 args = append (args , []string {"--safe-mode" , "secure" , "-" }... )
96+
9497 return system .ExecuteWithInput (exe , text , args ... )
9598}
9699
97100func parseAttributes (attrs map [string ]string ) []string {
98- var adocArgs []string
101+ var args []string
99102
100103 for k , v := range attrs {
101104 entry := fmt .Sprintf ("%s=%s" , k , v )
@@ -104,8 +107,8 @@ func parseAttributes(attrs map[string]string) []string {
104107 } else if v == "NO" {
105108 entry = k + "!"
106109 }
107- adocArgs = append (adocArgs , []string {"-a" , entry }... )
110+ args = append (args , []string {"-a" , entry }... )
108111 }
109112
110- return adocArgs
113+ return args
111114}
You can’t perform that action at this time.
0 commit comments