diff options
author | techknowlogick <techknowlogick@gitea.io> | 2020-09-22 13:02:16 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-22 20:02:16 +0300 |
commit | 1c3278c2fa7733e61dbca92cbb3e8cd5ce6a848b (patch) | |
tree | ad63d17954e5872de0a82755f2be5f62859d118b /build | |
parent | 63e8bdaf739519c800498dac87b4f362b3c6f478 (diff) | |
download | gitea-1c3278c2fa7733e61dbca92cbb3e8cd5ce6a848b.tar.gz gitea-1c3278c2fa7733e61dbca92cbb3e8cd5ce6a848b.zip |
update revive lint to latest commit (#12921)
* update revive lint to latest commit
* make fmt
* change import
Diffstat (limited to 'build')
-rw-r--r-- | build/lint.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build/lint.go b/build/lint.go index bc6ddbec41..60e93697aa 100644 --- a/build/lint.go +++ b/build/lint.go @@ -15,12 +15,12 @@ import ( "path/filepath" "strings" - "github.com/BurntSushi/toml" "github.com/mgechev/dots" "github.com/mgechev/revive/formatter" "github.com/mgechev/revive/lint" "github.com/mgechev/revive/rule" "github.com/mitchellh/go-homedir" + "github.com/pelletier/go-toml" ) func fail(err string) { @@ -133,7 +133,7 @@ func parseConfig(path string) *lint.Config { if err != nil { fail("cannot read the config file") } - _, err = toml.Decode(string(file), config) + err = toml.Unmarshal(file, config) if err != nil { fail("cannot parse the config file: " + err.Error()) } |