Skip to content

Commit ed04fc1

Browse files
committed
refactor: switched to template literals for string concatination
1 parent 2df4593 commit ed04fc1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

node-client/src/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ export class KubeConfig {
164164
this.clusters = [
165165
{
166166
name: clusterName,
167-
caFile: pathPrefix + Config.SERVICEACCOUNT_CA_PATH,
167+
caFile: `${pathPrefix}${Config.SERVICEACCOUNT_CA_PATH}`,
168168
caData: null,
169169
server: `${scheme}://${host}:${port}`,
170170
skipTLSVerify: false,
@@ -173,7 +173,7 @@ export class KubeConfig {
173173
this.users = [
174174
{
175175
name: userName,
176-
token: fs.readFileSync(pathPrefix + Config.SERVICEACCOUNT_TOKEN_PATH).toString(),
176+
token: fs.readFileSync(`${pathPrefix}${Config.SERVICEACCOUNT_TOKEN_PATH}`).toString(),
177177
// empty defaults, fields are required...
178178
certData: null,
179179
certFile: null,

0 commit comments

Comments
 (0)