Skip to content

Commit

Permalink
Make gitea, gitea-vet future-proof (go-gitea#18361)
Browse files Browse the repository at this point in the history
* Make gitea, gitea-vet future-proof

- Ref: https://gitea.com/gitea/gitea-vet/pulls/18

* Correct order

Co-authored-by: zeripath <art27@cantab.net>
  • Loading branch information
2 people authored and Stelios Malathouras committed Mar 28, 2022
1 parent 76a0efa commit 30f8b3b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions modules/json/json.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

package json

// Allow "encoding/json" import.
import (
"bytes"
"encoding/binary"
Expand Down

0 comments on commit 30f8b3b

Please sign in to comment.