Fix a stray unused variable

Travis tests show hundreds of warning for `'y' is defined but never used` and
when investigating it looks like a mistake was introduced in 0938858aa
during #272, so hopefully this'll be an easy fix!
This commit is contained in:
Alex Crichton 2018-07-04 08:16:09 -07:00
parent 2694dd4dee
commit 3510b20595

View File

@ -1807,8 +1807,8 @@ impl<'a, 'b> SubContext<'a, 'b> {
let target = if let Some(g) = getter { let target = if let Some(g) = getter {
if import.structural { if import.structural {
format!( format!(
"function(y) {{ "function() {{
return this.{}; return this.{};
}}", }}",
g g
) )