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

Remove unnecessary clone from ServiceWorkerManager::prepare_activation #13076

Merged
merged 1 commit into from Aug 27, 2016
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Remove unnecessary clone from ServiceWorkerManager::prepare_activation

  • Loading branch information
wdv4758h committed Aug 27, 2016
commit 10cf2ee11a111133313e679b1485bcedad4c3df0
@@ -72,7 +72,7 @@ impl ServiceWorkerManager {
}
}

if let Some(ref scope_url) = scope_url {
if let Some(scope_url) = scope_url {
if self.active_workers.contains_key(&scope_url) {
// do not run the same worker if already active.
warn!("Service worker for {:?} already active", scope_url);
@@ -100,7 +100,7 @@ impl ServiceWorkerManager {
self.own_sender.clone(),
scope_url.clone());
// We store the activated worker
self.active_workers.insert(scope_url.clone(), scope_things.clone());
self.active_workers.insert(scope_url, scope_things.clone());
return Some(sender);
} else {
warn!("Unable to activate service worker");
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.