Skip to content

Commit 5e1d4e0

Browse files
committed
style: refine nolint usage for improved code clarity
- Update nolint directive to specify gochecknoinits - Remove unnecessary nolint comment from test file Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
1 parent bef0546 commit 5e1d4e0

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

logx/log.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ type LogPushEntry struct {
3333

3434
var isTerm bool
3535

36-
// nolint
36+
//nolint:gochecknoinits
3737
func init() {
3838
isTerm = isatty.IsTerminal(os.Stdout.Fd())
3939
}

notify/notification_apns_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,6 @@ func TestPushToIOS(t *testing.T) {
788788
assert.Nil(t, err)
789789

790790
req := &PushNotification{
791-
//nolint
792791
Tokens: []string{
793792
"11aa01229f15f0f0c52029d8cf8cd0aeaf2365fe4cebc4af26cd6d76b7919ef7",
794793
"11aa01229f15f0f0c52029d8cf8cd0aeaf2365fe4cebc4af26cd6d76b7919ef1",

0 commit comments

Comments
 (0)