From 56a546e73dc5fe8d4a381c1929eaafbefa21d0dd Mon Sep 17 00:00:00 2001 From: Darren Schroeder <343840+fdncred@users.noreply.github.com> Date: Sat, 26 Mar 2022 21:26:39 -0500 Subject: [PATCH] fix ls when file is a socket on mac (#4983) --- crates/nu-command/src/filesystem/ls.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/nu-command/src/filesystem/ls.rs b/crates/nu-command/src/filesystem/ls.rs index 961de3d96e..18d32ac43a 100644 --- a/crates/nu-command/src/filesystem/ls.rs +++ b/crates/nu-command/src/filesystem/ls.rs @@ -462,6 +462,8 @@ pub(crate) fn dir_entry_dict( } else { vals.push(Value::nothing(span)); } + } else { + vals.push(Value::nothing(span)); } } else { vals.push(Value::nothing(span));