mirror of
https://github.com/nushell/nushell.git
synced 2025-08-13 23:08:43 +02:00
Remove interpretation of Primitive::Nothing
as the number 0. (#1836)
This commit is contained in:
@ -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)),
|
||||
|
Reference in New Issue
Block a user