Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit 2fa56c5

Browse files
Comment order change
Co-authored-by: cds-amal <[email protected]>
1 parent 1ae18d6 commit 2fa56c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/lib/console.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,10 +268,10 @@ class Console extends EventEmitter {
268268
if (json.metadata === undefined) {
269269
jsonBlobs.push(json);
270270
} else {
271-
const metadata = JSON.parse(json.metadata);
272-
const sources = Object.keys(metadata.sources);
273271
// filter out Truffle's console.log. We don't want users to interact with in the REPL.
274272
// user contracts named console.log will be imported, and a warning will be issued.
273+
const metadata = JSON.parse(json.metadata);
274+
const sources = Object.keys(metadata.sources);
275275
if (
276276
sources.length > 1 ||
277277
(sources.length === 1 &&

0 commit comments

Comments
 (0)