Skip to content

Commit 1c37f32

Browse files
Refactor: Update ShellContext.java
1 parent 14c8e84 commit 1c37f32

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/main/java/com/mycmd/ShellContext.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,14 @@ public class ShellContext {
1717

1818
public ShellContext() {
1919
this.currentDir = new File(System.getProperty("user.dir"));
20-
this.environment = new HashMap<>()(System.getenv());
20+
this.environment = new HashMap<>(System.getenv());
2121
this.history = new ArrayList<>();
2222
this.aliases = new HashMap<>();
2323
this.scanner = null;
2424
this.startTime = System.currentTimeMillis();
2525
}
2626

27+
2728
// ==================== Scanner Management ====================
2829

2930
/**

0 commit comments

Comments
 (0)