Skip to content
Permalink
Browse files

Tidy up check for zero-length lists when interpolating

  • Loading branch information
birtles committed Jul 12, 2017
1 parent 6320702 commit 255b4e10c73cc848442a18bb7619da49bf4b6951
Showing with 1 addition and 1 deletion.
  1. +1 −1 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<Self, ()> {
// 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;

0 comments on commit 255b4e1

Please sign in to comment.
You can’t perform that action at this time.