Skip to content

Commit b5a2ca2

Browse files
committed
fix: lint
1 parent ba28b10 commit b5a2ca2

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

internal/configs/configs.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ func NewConfig(namespace string, app string, configFilePath string, envFilePath
9999
meta.Env = os.Getenv("ENV")
100100
}
101101

102-
config.Meta.Env = config.Env
103-
config.Meta.App = app
104-
config.Meta.Namespace = namespace
102+
config.Env = meta.Env
103+
config.App = app
104+
config.Namespace = namespace
105105

106106
return &config, nil
107107
}

internal/rcon/rcon.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ func NewRCON() func(NewRCONParams) (RCON, error) {
105105
defer connWrapper.mutex.Unlock()
106106

107107
if connWrapper.Conn != nil {
108-
return connWrapper.Conn.Close()
108+
return connWrapper.Conn.Close() //nolint:staticcheck
109109
}
110110

111111
return nil
@@ -175,7 +175,7 @@ func (r *RCONConn) establishConnection(ctx context.Context) (*rcon.Conn, error)
175175
defer r.mutex.Unlock()
176176

177177
if r.Conn != nil {
178-
_ = r.Conn.Close()
178+
_ = r.Conn.Close() //nolint:staticcheck
179179
}
180180

181181
conn, err := rcon.Dial(net.JoinHostPort(r.host, r.port), r.password)

0 commit comments

Comments
 (0)