From f7d63213c758010b47349d25fba5decb5b41d6c2 Mon Sep 17 00:00:00 2001 From: Anmol Sethi Date: Sun, 18 Dec 2022 12:26:58 -0800 Subject: [PATCH] fmt --- docs/CONTRIBUTING.md | 21 ++++++++------------- main.go | 2 +- 2 files changed, 9 insertions(+), 14 deletions(-) diff --git a/docs/CONTRIBUTING.md b/docs/CONTRIBUTING.md index f5b08f6b1..801917b2b 100644 --- a/docs/CONTRIBUTING.md +++ b/docs/CONTRIBUTING.md @@ -1,19 +1,14 @@ # Contributing - -- [CI](#ci) -- [Flow](#flow) -- [Logistics](#logistics) -- [Dev](#dev) - * [Content](#content) - * [Tests](#tests) - + [Running tests](#running-tests) - + [Chaos tests](#chaos-tests) - * [Documentation](#documentation) - * [Questions](#questions) - - +- CI +- Flow +- Logistics +- Dev + - Content + - Tests + - Documentation + - Questions ## CI diff --git a/main.go b/main.go index ce2af7899..53ef5d201 100644 --- a/main.go +++ b/main.go @@ -244,7 +244,7 @@ func compile(ctx context.Context, ms *xmain.State, plugin d2plugin.Plugin, pad, return svg, false, err } } else { - if len(out) > 0 && out[len(out)-1] != '\n' { + if len(out) > 0 && out[len(out)-1] != '\n' { out = append(out, '\n') } }