Skip to content

Commit f787d9e

Browse files
committed
up
1 parent d67779f commit f787d9e

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

.github/workflows/golangci-lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ jobs:
2020
with:
2121
go-version: stable
2222
- name: golangci-lint
23-
uses: golangci/golangci-lint-action@v6
23+
uses: golangci/golangci-lint-action@v8
2424
with:
25-
version: v1.62.2
25+
version: v2.1.0

service/controller/controller.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,6 @@ func (c *Controller) addNewUser(userInfo *[]api.UserInfo, nodeInfo *api.NodeInfo
417417
return err
418418
}
419419
c.logger.Printf("Added %d new users for tag %s", len(*userInfo), tag)
420-
421420
}
422421
return nil
423422
}

service/controller/userbuilder.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,8 @@ func (c *Controller) buildSSUser(userInfo *[]api.UserInfo, method string) (users
8989
users[i] = &protocol.User{
9090
Level: 0,
9191
Email: e,
92-
Account: serial.ToTypedMessage(&shadowsocks_2022.User{
93-
Key: userKey,
94-
Email: e,
95-
Level: 0,
92+
Account: serial.ToTypedMessage(&shadowsocks_2022.Account{
93+
Key: userKey,
9694
}),
9795
}
9896
} else {

0 commit comments

Comments
 (0)