mirror of
https://github.com/taiki-e/install-action.git
synced 2026-05-10 14:40:32 +00:00
codegen: Remove needless allocation
This commit is contained in:
@@ -291,11 +291,8 @@ fn main() -> Result<()> {
|
|||||||
Path::new(&url).file_name().unwrap().to_str().unwrap()
|
Path::new(&url).file_name().unwrap().to_str().unwrap()
|
||||||
));
|
));
|
||||||
let response = download(&url)?;
|
let response = download(&url)?;
|
||||||
let etag = response
|
let etag =
|
||||||
.header("etag")
|
response.header("etag").expect("binary should have an etag").replace('\"', "");
|
||||||
.expect("binary should have an etag")
|
|
||||||
.to_string()
|
|
||||||
.replace('\"', "");
|
|
||||||
|
|
||||||
if let Some(ManifestRef::Real(ref manifest)) = existing_manifest {
|
if let Some(ManifestRef::Real(ref manifest)) = existing_manifest {
|
||||||
if let Some(entry) = manifest.download_info.get(&platform) {
|
if let Some(entry) = manifest.download_info.get(&platform) {
|
||||||
|
|||||||
Reference in New Issue
Block a user