Skip to content

Conversation

@alingse
Copy link
Contributor

@alingse alingse commented Mar 29, 2025

the code logic I think,

if file not exists( statErr != nil ) it will be delay write to path use the ptr, so it should call with a direct nil value.

@alingse alingse requested a review from a team as a code owner March 29, 2025 15:41
Copy link
Member

@chrisd8088 chrisd8088 left a comment

Choose a reason for hiding this comment

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

Hey, thanks for this PR and bit of code cleanup!

As you noted, the value of err here must always be nil, since the preceding conditional checks for a non-nil value and returns early in that case. So this change has no functional impact but definitely makes our code a bit simpler and easier to understand.

Thanks again for this PR!

@chrisd8088 chrisd8088 merged commit d0e9d61 into git-lfs:main Apr 4, 2025
19 of 20 checks passed
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