Remove interpretation of Primitive::Nothing as the number 0. (#1836)

This commit is contained in:
Jason Gedge
2020-05-18 15:18:46 -04:00
committed by GitHub
parent 0743b69ad5
commit 6efabef8d3
8 changed files with 6 additions and 18 deletions

View File

@ -17,7 +17,6 @@ impl Average {
pub fn average(&mut self, value: Value) -> Result<(), ShellError> {
match &value.value {
UntaggedValue::Primitive(Primitive::Nothing) => Ok(()),
UntaggedValue::Primitive(Primitive::Int(i)) => match &self.total {
Some(Value {
value: UntaggedValue::Primitive(Primitive::Int(j)),