mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-24 19:10:24 +00:00
Silence unnecessary log (#22750)
It is expected that an unsaved buffer would have no file. Release Notes: - N/A
This commit is contained in:
parent
6fce53651b
commit
92b9d80549
1 changed files with 1 additions and 1 deletions
|
@ -404,7 +404,7 @@ impl LocalBufferStore {
|
||||||
cx: &AppContext,
|
cx: &AppContext,
|
||||||
) -> Task<Result<Option<String>>> {
|
) -> Task<Result<Option<String>>> {
|
||||||
let Some(file) = buffer.read(cx).file() else {
|
let Some(file) = buffer.read(cx).file() else {
|
||||||
return Task::ready(Err(anyhow!("buffer has no file")));
|
return Task::ready(Ok(None));
|
||||||
};
|
};
|
||||||
let worktree_id = file.worktree_id(cx);
|
let worktree_id = file.worktree_id(cx);
|
||||||
let path = file.path().clone();
|
let path = file.path().clone();
|
||||||
|
|
Loading…
Reference in a new issue