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

refactor: remove unused placeholder vars #4549

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

Conversation

Pantani
Copy link
Collaborator

@Pantani Pantani commented Mar 2, 2025

close #4548

@Pantani Pantani self-assigned this Mar 2, 2025
@Pantani Pantani requested review from salmad3 and toschdev as code owners March 2, 2025 21:40
Pantani added 3 commits March 2, 2025 18:45
…aceholder-vars

# Conflicts:
#	ignite/templates/module/create/files/base/x/{{moduleName}}/module/simulation.go.plush
julienrbrt
julienrbrt previously approved these changes Mar 3, 2025
Copy link
Member

@julienrbrt julienrbrt left a comment

Choose a reason for hiding this comment

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

Love the clean-up but I have a doubt about the "strconv" removal: https://github.com/ignite/cli/blob/main/ignite/templates/field/datatype/string.go#L17.
Couldn't make it fail locally, so i suppose it works. This is probably goimports adding it automagically right?

@julienrbrt julienrbrt changed the title fix: remove unused placeholder vars refactor: remove unused placeholder vars Mar 3, 2025
content, err := xast.AppendImports(
content,
xast.WithLastNamedImport(
fmt.Sprintf("%[1]vsimulation", moduleName),
Copy link
Member

@julienrbrt julienrbrt Mar 3, 2025

Choose a reason for hiding this comment

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

Shouldn't <modulename>/testutil/sample be added here too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UPDATE: remove all blank vars to avoid import issue
2 participants