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

feat(fromJCAMP): start refactor for new approach #35

Closed
wants to merge 1 commit into from
Closed

Conversation

jobo322
Copy link
Member

@jobo322 jobo322 commented May 6, 2021

avoid crash when the jcamp file contains assignment.
work in progress for deal with assignment in jcamp files.

avoid crash when the jcamp file contains assignment.
work in progress for deal with assignment in jcamp files.
Copy link
Member

@lpatiny lpatiny left a comment

Choose a reason for hiding this comment

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

I think you may use the 'flatten' version returned by jcamp and skip everything that is LINK and other unknown dataType.

function chooseProcessor(dataType, dataClass) {
switch (dataType.toLowerCase()) {
case 'link':
return extractFromLink;
Copy link
Member

Choose a reason for hiding this comment

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

What is it expected to be done when it is a link ? We should just do nothing no ?

@jobo322 jobo322 closed this May 6, 2021
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.

2 participants