diff options
author | Jordan <me@jordan.im> | 2022-01-27 01:00:05 -0700 |
---|---|---|
committer | Jordan <me@jordan.im> | 2022-01-27 01:00:05 -0700 |
commit | f4ad4e4adf34c65bc83bbdc586499e3136a26be1 (patch) | |
tree | e164d925a9a47db3cf427a198b71288e65430139 | |
parent | 35339a2918240c7948d2748b2e8d484ea5cd9a76 (diff) | |
download | crane-f4ad4e4adf34c65bc83bbdc586499e3136a26be1.tar.gz crane-f4ad4e4adf34c65bc83bbdc586499e3136a26be1.zip |
crane: rm unnecessary err check
-rw-r--r-- | crane.go | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -327,10 +327,6 @@ func (papers *Papers) NewPaperFromDirectLink(resp *http.Response, meta *Meta, paper.PaperName = papers.getUniqueName(category, getPaperFileNameFromResp(resp)) } - - if err != nil { - return &Paper{}, err - } paper.PaperPath = filepath.Join(papers.Path, filepath.Join(category, paper.PaperName+".pdf")) |