Remove stray logging statements
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
co-authored by
Nathan Sobo
parent
7ad2071a51
commit
6abac39eaa
+3
-2
@@ -1917,8 +1917,9 @@ impl File {
|
||||
/// Returns the last component of this handle's absolute path. If this handle refers to the root
|
||||
/// of its worktree, then this method will return the name of the worktree itself.
|
||||
pub fn file_name<'a>(&'a self, cx: &'a AppContext) -> Option<OsString> {
|
||||
dbg!(self.path.file_name())
|
||||
.or_else(|| Some(OsStr::new(dbg!(self.worktree.read(cx).root_name()))))
|
||||
self.path
|
||||
.file_name()
|
||||
.or_else(|| Some(OsStr::new(self.worktree.read(cx).root_name())))
|
||||
.map(Into::into)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user