Skip to content

Commit 8582bf9

Browse files
committed
remove additional stringification
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
1 parent 63c8067 commit 8582bf9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/actions/onStartup.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ const onStartup = async (context: Context): Promise<void> => {
3535

3636
// NEW: no stored tutorial, must start new tutorial
3737
if(!tutorial||!tutorial.id){
38-
if(!!TUTORIAL_URL){
39-
// NEW_FROM_URL
38+
if(TUTORIAL_URL){
39+
// if a tutorial URL is added, launch on startup
4040
try{
4141
consttutorialRes=awaitfetch(TUTORIAL_URL)
4242
consttutorial=awaittutorialRes.json()

src/services/node/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export const readFile = (...paths: string[]): Promise<string | void> => {
4141

4242
exportconstwriteFile=(data: any, ...paths: string[]): Promise<void>=>{
4343
constfilePath=getWorkspacePath(...paths)
44-
returnasyncWriteFile(filePath,JSON.stringify(data)).catch((err)=>{
44+
returnasyncWriteFile(filePath,data).catch((err)=>{
4545
console.warn(`Failed to write to ${filePath}: ${err.message}`)
4646
})
4747
}

0 commit comments

Comments
 (0)
close