fix: dedupe fs import in guard
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import { appendFileSync } from "node:fs"
|
import { appendFileSync, mkdirSync } from "node:fs"
|
||||||
import { homedir } from "node:os"
|
import { homedir } from "node:os"
|
||||||
import path from "node:path"
|
import path from "node:path"
|
||||||
|
|
||||||
@@ -28,8 +28,6 @@ const LOG_PATH = path.join(
|
|||||||
"neuron-guard.jsonl",
|
"neuron-guard.jsonl",
|
||||||
)
|
)
|
||||||
|
|
||||||
import { appendFileSync, mkdirSync } from "node:fs"
|
|
||||||
|
|
||||||
function log(entry: Entry) {
|
function log(entry: Entry) {
|
||||||
try {
|
try {
|
||||||
mkdirSync(path.dirname(LOG_PATH), { recursive: true })
|
mkdirSync(path.dirname(LOG_PATH), { recursive: true })
|
||||||
|
|||||||
Reference in New Issue
Block a user