aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--components/servo/lib.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/components/servo/lib.rs b/components/servo/lib.rs
index 96296b92f09..8ef09eb066e 100644
--- a/components/servo/lib.rs
+++ b/components/servo/lib.rs
@@ -237,12 +237,8 @@ fn create_constellation(opts: opts::Opts,
layout_thread::LayoutThread,
script::script_thread::ScriptThread>::start(initial_state);
- // Send the URL command to the constellation.
- match opts.url {
- Some(url) => {
- constellation_chan.send(ConstellationMsg::InitLoadUrl(url)).unwrap();
- },
- None => ()
+ if let Some(url) = opts.url {
+ constellation_chan.send(ConstellationMsg::InitLoadUrl(url)).unwrap();
};
constellation_chan