Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tsp-client] Code fixes #7202

Merged
merged 11 commits into from
Nov 16, 2023
Merged

[tsp-client] Code fixes #7202

merged 11 commits into from
Nov 16, 2023

Conversation

catalinaperalta
Copy link
Member

@catalinaperalta catalinaperalta commented Oct 28, 2023

PR is mainly to improve code style, fix some logic, correct async functions
Fixes #7049
Fixes #7048

@catalinaperalta catalinaperalta changed the title Tsp client/improvements [tsp-client] Code fixes Oct 28, 2023
@@ -1,8 +1,8 @@
import { mkdir, rm, writeFile, stat, readFile, access } from "node:fs/promises";
import { FileTreeResult } from "./fileTree.js";
import { mkdir, rm, stat, readFile, access } from "node:fs/promises";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does it work if you import from "fs/promises"? without node: just curious, as I'm not used to this notation.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does seem to work without it. I'm not sure why this was added for me. I could look into removing it in the future if it's better. Let me know! I'll merge this PR in without that change though

Copy link
Member

@joheredi joheredi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks great! Love the improved error messages. Left a few minor comments

@catalinaperalta catalinaperalta marked this pull request as ready for review November 16, 2023 03:38
@catalinaperalta catalinaperalta merged commit 9b220f9 into main Nov 16, 2023
7 checks passed
@catalinaperalta catalinaperalta deleted the tsp-client/improvements branch November 16, 2023 03:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[tsp-client] Fix code style [tsp-client] Refactor code to use optional chaining
2 participants