Skip to content

Conversation

@sergey3bv
Copy link

Addressing #1979

// TODO: remove hasLdkDir check after 2025/01/01
// to give time for users to update to 1.6.0+
nodeLastStartTime, _ := cfg.Get("NodeLastStartTime", "")
ldkDir, err := os.Stat(path.Join(cfg.GetEnv().Workdir, "ldk"))
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for the PR.

On the line above, could we also check the error rather than ignoring it with _.

Copy link
Author

@sergey3bv sergey3bv Jan 13, 2026

Choose a reason for hiding this comment

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

check the error

@rolznz, no problem. Should the function log the error and return false or should it pass the error to the caller?

Copy link
Contributor

Choose a reason for hiding this comment

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

Passing the error would be great, thanks!

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