Skip to content

Commit be3de21

Browse files
committed
🎨 Clean code
1 parent 756ce53 commit be3de21

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎controller/b3midware.go‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,7 @@ func fillUser(c *gin.Context) {
6464
return
6565
default:
6666
result := util.NewResult()
67-
request := gorequest.New()
68-
_, _, errs := request.Get(util.HacPaiURL+"/apis/check-b3-identity?b3id="+b3id).
67+
_, _, errs := gorequest.New().Get(util.HacPaiURL+"/apis/check-b3-identity?b3id="+b3id).
6968
Set("user-agent", util.UserAgent).Timeout(30 * time.Second).EndStruct(result)
7069
if nil != errs {
7170
logger.Errorf("check b3 identity failed: %s", errs)

0 commit comments

Comments
 (0)