Skip to content

Commit db86c55

Browse files
committed
removed duplicate code after pull request
Signed-off-by: Claudia Emmanuel <emmanuel.claudia@gmail.com>
1 parent e6908ff commit db86c55

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

extension.js

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -260,15 +260,9 @@ function activate(context) {
260260
if (descItem) {
261261
treeViewProviderDesc.setActiveNetwork(descItem);
262262
}
263-
if (fabricItem) {
264-
treeViewProviderFabric.setActiveNetwork(fabricItem);
265-
}
266263
if (descItem) {
267264
treeViewProviderDesc.setActiveNetwork(descItem);
268265
}
269-
if (fabricItem) {
270-
treeViewProviderFabric.setActiveNetwork(fabricItem);
271-
}
272266

273267
const activeNetwork = fabricItem || descItem;
274268
if (!activeNetwork) {
@@ -620,7 +614,6 @@ function activate(context) {
620614
)
621615
);
622616

623-
624617
context.subscriptions.push(
625618
vscode.commands.registerCommand("fabric-network.queryBlocks", async () => {
626619
if (!loadedConnectionProfile || !loadedConnectionProfile.name) {
@@ -689,8 +682,8 @@ function activate(context) {
689682
if (rawBlockData) {
690683
try {
691684
const decodedBlock = await decodeBlock(rawBlockData);
692-
693-
decodedBlocks.push(decodedBlock);
685+
686+
decodedBlocks.push(decodedBlock);
694687
} catch (decodeError) {
695688
vscode.window.showErrorMessage(
696689
`Error decoding block ${blockNumber}: ${decodeError.message}`
@@ -702,7 +695,7 @@ function activate(context) {
702695
}
703696
}
704697

705-
BlockchainProvider.refresh(decodedBlocks);
698+
BlockchainProvider.refresh(decodedBlocks);
706699
} catch (error) {
707700
vscode.window.showErrorMessage(`Error: ${error.message}`);
708701
console.error("Error during block query:", error);
@@ -739,7 +732,6 @@ function activate(context) {
739732
);
740733
console.log("Delve Debug Adapter Registered");
741734

742-
743735
context.subscriptions.push(
744736
vscode.debug.onDidStartDebugSession((session) => {
745737
console.log(`Debugging started: ${session.name}`);

0 commit comments

Comments
 (0)