From 255b4e10c73cc848442a18bb7619da49bf4b6951 Mon Sep 17 00:00:00 2001 From: Brian Birtles Date: Wed, 12 Jul 2017 09:55:03 +0900 Subject: [PATCH] Tidy up check for zero-length lists when interpolating --- components/style/properties/helpers/animated_properties.mako.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/style/properties/helpers/animated_properties.mako.rs b/components/style/properties/helpers/animated_properties.mako.rs index a84aea36f2f5..959b55b0a60b 100644 --- a/components/style/properties/helpers/animated_properties.mako.rs +++ b/components/style/properties/helpers/animated_properties.mako.rs @@ -826,7 +826,7 @@ macro_rules! repeated_vec_impl { fn add_weighted(&self, other: &Self, self_portion: f64, other_portion: f64) -> Result { // If the length of either list is zero, the least common multiple is undefined. - if cmp::min(self.len(), other.len()) < 1 { + if self.is_empty() || other.is_empty() { return Err(()); } use num_integer::lcm;