From 1ddfa596c8d9acb4fa5c04ed25df374b6e51c4b9 Mon Sep 17 00:00:00 2001 From: Gusted Date: Sat, 22 Jan 2022 21:59:34 +0000 Subject: [PATCH] Make gitea, gitea-vet future-proof (#18361) * Make gitea, gitea-vet future-proof - Ref: https://gitea.com/gitea/gitea-vet/pulls/18 * Correct order Co-authored-by: zeripath --- CONTRIBUTING.md | 2 +- modules/json/json.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 624896bbaacd..b9de6b69970c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -141,8 +141,8 @@ For imports you should use the following format (_without_ the comments) ```go import ( // stdlib - "encoding/json" "fmt" + "math" // local packages "code.gitea.io/gitea/models" diff --git a/modules/json/json.go b/modules/json/json.go index 1cbb6582610d..3afa86023c6f 100644 --- a/modules/json/json.go +++ b/modules/json/json.go @@ -4,6 +4,7 @@ package json +// Allow "encoding/json" import. import ( "bytes" "encoding/binary"