Improve control flow readability of purgeFile #17565
Labels
area/clientv3
priority/important-longterm
Important over the long term, but may not be staffed and/or may need multiple releases to complete.
type/feature
What would you like to be added?
Improve control flow readability of
purgeFile
function inclient/pkg/fileutil/purge.go
Why is this needed?
purgeFile
function inclient/pkg/fileutil/purge.go
control flow related tofnames
andnewfnames
variables is somewhat difficult to follow, withfnames
reassigned value ofnewfnames
after filtering originalfnames
,newfnames
slice then updated in for loop, and then finally bothfnames
andnewfnames
slice lengths used to determine writes topurgec
channel.(a changed isn't strictly needed but it could improve readability)
The text was updated successfully, but these errors were encountered: