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

os: simplify EnsureDir() #5871

Merged
merged 1 commit into from Jan 6, 2021
Merged

os: simplify EnsureDir() #5871

merged 1 commit into from Jan 6, 2021

Conversation

erikgrinaker
Copy link
Contributor

#5852 fixed an issue with error propagation in os.EnsureDir(). However, this function is basically identical to os.MkdirAll(), and can be replaced entirely with a call to it. We keep the function for backwards compatibility.

@erikgrinaker erikgrinaker added the S:automerge Automatically merge PR when requirements pass label Jan 6, 2021
@erikgrinaker erikgrinaker self-assigned this Jan 6, 2021
@codecov
Copy link

codecov bot commented Jan 6, 2021

Codecov Report

Merging #5871 (3708f49) into master (9b9222f) will decrease coverage by 0.07%.
The diff coverage is 86.11%.

@@            Coverage Diff             @@
##           master    #5871      +/-   ##
==========================================
- Coverage   59.98%   59.91%   -0.08%     
==========================================
  Files         263      263              
  Lines       23858    23858              
==========================================
- Hits        14312    14294      -18     
- Misses       8021     8032      +11     
- Partials     1525     1532       +7     
Impacted Files Coverage Δ
statesync/reactor.go 55.74% <0.00%> (+1.16%) ⬆️
libs/protoio/reader.go 85.18% <76.47%> (+0.18%) ⬆️
abci/types/messages.go 7.69% <100.00%> (ø)
libs/os/os.go 37.93% <100.00%> (+2.63%) ⬆️
libs/protoio/io.go 44.44% <100.00%> (+3.26%) ⬆️
p2p/conn/connection.go 78.23% <100.00%> (+0.06%) ⬆️
p2p/conn/secret_connection.go 82.98% <100.00%> (ø)
p2p/transport_mconn.go 42.01% <100.00%> (+0.18%) ⬆️
privval/secret_connection.go 72.68% <100.00%> (-3.61%) ⬇️
privval/signer_endpoint.go 75.75% <100.00%> (-3.04%) ⬇️
... and 15 more

@mergify mergify bot merged commit a0d4d85 into master Jan 6, 2021
@mergify mergify bot deleted the erik/simple-ensuredir branch January 6, 2021 15:27
erikgrinaker added a commit that referenced this pull request Jan 6, 2021
#5852 fixed an issue with error propagation in `os.EnsureDir()`. However, this function is basically identical to `os.MkdirAll()`, and can be replaced entirely with a call to it. We keep the function for backwards compatibility.
erikgrinaker added a commit that referenced this pull request Jan 6, 2021
#5852 fixed an issue with error propagation in `os.EnsureDir()`. However, this function is basically identical to `os.MkdirAll()`, and can be replaced entirely with a call to it. We keep the function for backwards compatibility.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S:automerge Automatically merge PR when requirements pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants