Skip to content

Conversation

@johnsimons
Copy link
Member

@johnsimons johnsimons commented Feb 5, 2024

This is quite a few files, but is just removing the .js from the imports, so that once we rename the files to .ts we don't need to revisit these imports.

@johnsimons johnsimons self-assigned this Feb 5, 2024
if (type == "array" || type == "object") {
for (let i in obj) {
for (const i in obj) {
Copy link
Contributor

Choose a reason for hiding this comment

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

terrible variable name... I suggest key

Copy link
Member Author

Choose a reason for hiding this comment

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

we can address this in a different PR

}
const data = await response.json();
var message = data;
const message = data;
Copy link
Contributor

Choose a reason for hiding this comment

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

I know this isn't new... but why?

} catch (err) {
console.log(err);
var result_1 = {
const result_1 = {
Copy link
Contributor

Choose a reason for hiding this comment

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

i suspect this was from Mike using autoconvert to async await: can we just have this object returned rather than having a machine generated variable name?

} catch (err) {
console.log(err);
var result_1 = {
const result_1 = {
Copy link
Contributor

Choose a reason for hiding this comment

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

just return

} catch (err) {
console.log(err);
var result_1 = {
const result_1 = {
Copy link
Contributor

Choose a reason for hiding this comment

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

just return

Copy link
Member Author

Choose a reason for hiding this comment

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

I think there is an eslint about this, "unnecessary variable", can you check @PhilBastian ?

Copy link
Member Author

@johnsimons johnsimons Feb 6, 2024

Choose a reason for hiding this comment

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

image

} catch (err) {
console.log(err);
var result_1 = {
const result_1 = {
Copy link
Contributor

Choose a reason for hiding this comment

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

just return

Base automatically changed from john/starship to master February 6, 2024 01:25
@johnsimons johnsimons merged commit 71b3056 into master Feb 6, 2024
@johnsimons johnsimons deleted the john/nojs branch February 6, 2024 01:26
@mikeminutillo mikeminutillo added the Type: Refactoring Type: Refactoring label Feb 7, 2024
@mikeminutillo mikeminutillo added this to the vNext milestone Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Refactoring Type: Refactoring

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants