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

module: remove deadcode for parsing error #1708

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

giautm
Copy link
Contributor

@giautm giautm commented May 15, 2024

No description provided.

@giautm giautm requested a review from a team as a code owner May 15, 2024 13:09
@@ -508,7 +508,7 @@ func ParseVariables(ctx context.Context, fs ReadOnlyFS, modStore *state.ModuleSt
return err
}

sErr := modStore.UpdateParsedVarsFiles(modPath, files, err)
sErr := modStore.UpdateParsedVarsFiles(modPath, files)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

See L507, the err always nil

@giautm
Copy link
Contributor Author

giautm commented May 19, 2024

cc @dbanck, here is another PR.

@dbanck
Copy link
Member

dbanck commented May 22, 2024

I've seen this PR, thank you for raising it.

I'm still thinking about whether we should stop collecting the parsing error or rather want to remove the early return in L507.

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