diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-01-14 15:47:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-14 15:47:23 +0100 |
commit | 564bd693cae4e8a870be7a7860ef673e793f6358 (patch) | |
tree | ab395cdeab8814c2d3b426cf5215246057ff87ba /docs | |
parent | 3961882ffe9e1cb83adab483caf39a0db5b4430a (diff) | |
parent | 460887edca95605ee203893448d98986a2521e2d (diff) | |
download | podman-564bd693cae4e8a870be7a7860ef673e793f6358.tar.gz podman-564bd693cae4e8a870be7a7860ef673e793f6358.tar.bz2 podman-564bd693cae4e8a870be7a7860ef673e793f6358.zip |
Merge pull request #4858 from vrothberg/enable-linters
make lint: extend checks
Diffstat (limited to 'docs')
-rw-r--r-- | docs/varlink/apidoc.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/docs/varlink/apidoc.go b/docs/varlink/apidoc.go index 884ce54fe..87304de15 100644 --- a/docs/varlink/apidoc.go +++ b/docs/varlink/apidoc.go @@ -181,7 +181,7 @@ func generateIndex(methods []funcDescriber, types []typeDescriber, errors []err, } for _, outArg := range method.returnParams { - outArgs = append(outArgs, fmt.Sprintf("%s", outArg.paramKind)) + outArgs = append(outArgs, outArg.paramKind) } b.WriteString(fmt.Sprintf("\n[func %s(%s) %s](#%s)\n", method.Name, strings.Join(inArgs, ", "), strings.Join(outArgs, ", "), method.Name)) @@ -272,5 +272,8 @@ func main() { out = generateTypeDescriptions(types, out) out.WriteString("## Errors\n") out = generateErrorDescriptions(errors, out) - ioutil.WriteFile(mdFile, out.Bytes(), 0755) + if err := ioutil.WriteFile(mdFile, out.Bytes(), 0755); err != nil { + fmt.Fprintf(os.Stderr, "Error writing file: %v\n", err) + os.Exit(1) + } } |