mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03:00
config: use else to catch all errors since there are many
This commit is contained in:

committed by
Mitchell Hashimoto

parent
d3182c8d7c
commit
5e33d77160
@ -48,9 +48,10 @@ pub const Location = enum {
|
|||||||
error.OutOfMemory => return error.OutOfMemory,
|
error.OutOfMemory => return error.OutOfMemory,
|
||||||
error.BufferTooSmall => return error.OutOfMemory,
|
error.BufferTooSmall => return error.OutOfMemory,
|
||||||
|
|
||||||
// No home dir means we don't have an XDG config dir
|
// Any other error we treat as the XDG directory not
|
||||||
// so we can just return null.
|
// existing. Windows in particularly can return a LOT
|
||||||
error.NoHomeDir => return null,
|
// of errors here.
|
||||||
|
else => return null,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user