Skip to content

Commit 93eb633

Browse files
committed
Update to fulfill eslint
1 parent e5173d1 commit 93eb633

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/quickPicks.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export const selectUrl = (rootPath: string, subgraph: Subgraph, context: Extensi
2727
},
2828
];
2929
urlSelector.onDidChangeSelection(() => {
30-
let label = urlSelector.selectedItems[0].label || '';
30+
const label = urlSelector.selectedItems[0].label || '';
3131
if (!label) {
3232
return;
3333
}
@@ -37,7 +37,7 @@ export const selectUrl = (rootPath: string, subgraph: Subgraph, context: Extensi
3737
urlSelector.dispose();
3838
});
3939
urlSelector.onDidTriggerItemButton((item) => {
40-
let placeHolder = item.item.label === 'Use Local Url' ? subgraph.local : subgraph.dev;
40+
const placeHolder = item.item.label === 'Use Local Url' ? subgraph.local : subgraph.dev;
4141
window
4242
.showInputBox({
4343
ignoreFocusOut: true,
@@ -49,12 +49,12 @@ export const selectUrl = (rootPath: string, subgraph: Subgraph, context: Extensi
4949
if (!inp) {
5050
return;
5151
}
52-
let filePath = `${rootPath}/.rover-runner/${context.workspaceState.get(
52+
const filePath = `${rootPath}/.rover-runner/${context.workspaceState.get(
5353
'Supergraph Configuration Filename',
5454
'supergraph.json'
5555
)}`;
56-
let supergraphJson = JSON.parse(readFileSync(filePath, 'utf-8'));
57-
let urlKey: string = item.item.label === 'Use Local Url' ? 'localUrl' : 'devUrl';
56+
const supergraphJson = JSON.parse(readFileSync(filePath, 'utf-8'));
57+
const urlKey: string = item.item.label === 'Use Local Url' ? 'localUrl' : 'devUrl';
5858
supergraphJson.subgraphs[subgraph.label][urlKey] = inp;
5959
writeFileSync(filePath, JSON.stringify(supergraphJson, null, 2), 'utf-8');
6060
if (urlKey === 'localUrl') {

src/redis.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ export const startRedis = () => {
55
detect(6379).then((_port: number) => {
66
// _port is the next available port so if equal then server isn't running
77
if (6379 === _port) {
8-
let redisTerminal =
8+
const redisTerminal =
99
window.terminals.find((i: { name: string }) => i.name === `Redis`) || window.createTerminal(`Redis`);
1010
redisTerminal.sendText('redis-server');
1111
}
1212
});
1313
};
1414

1515
export const stopRedis = () => {
16-
let redisTerminal = window.terminals.find((i: { name: string }) => i.name === `Redis`);
16+
const redisTerminal = window.terminals.find((i: { name: string }) => i.name === `Redis`);
1717
if (redisTerminal) {
1818
redisTerminal.sendText('\u0003');
1919
redisTerminal.dispose();

0 commit comments

Comments
 (0)