mirror of
https://github.com/taiki-e/install-action.git
synced 2026-04-18 20:02:36 +08: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()
|
||||
));
|
||||
let response = download(&url)?;
|
||||
let etag = response
|
||||
.header("etag")
|
||||
.expect("binary should have an etag")
|
||||
.to_string()
|
||||
.replace('\"', "");
|
||||
let etag =
|
||||
response.header("etag").expect("binary should have an etag").replace('\"', "");
|
||||
|
||||
if let Some(ManifestRef::Real(ref manifest)) = existing_manifest {
|
||||
if let Some(entry) = manifest.download_info.get(&platform) {
|
||||
|
||||
Reference in New Issue
Block a user