diff options
| author | William Boman <william@redwill.se> | 2022-08-15 21:03:06 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-15 21:03:06 +0200 |
| commit | 3c62386a396ae0c1cd7adbaacc379eb4af072a65 (patch) | |
| tree | 4d00d20958839a04e6a996c11b97724c762e491a /lua/mason-core/result.lua | |
| parent | chore: update generated code (#295) (diff) | |
| download | mason-3c62386a396ae0c1cd7adbaacc379eb4af072a65.tar mason-3c62386a396ae0c1cd7adbaacc379eb4af072a65.tar.gz mason-3c62386a396ae0c1cd7adbaacc379eb4af072a65.tar.bz2 mason-3c62386a396ae0c1cd7adbaacc379eb4af072a65.tar.lz mason-3c62386a396ae0c1cd7adbaacc379eb4af072a65.tar.xz mason-3c62386a396ae0c1cd7adbaacc379eb4af072a65.tar.zst mason-3c62386a396ae0c1cd7adbaacc379eb4af072a65.zip | |
refactor: introduce selene, harden type defs, and use proper EmmyLua syntax (#296)
Diffstat (limited to 'lua/mason-core/result.lua')
| -rw-r--r-- | lua/mason-core/result.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/mason-core/result.lua b/lua/mason-core/result.lua index 0a615b8f..f2efd36a 100644 --- a/lua/mason-core/result.lua +++ b/lua/mason-core/result.lua @@ -40,7 +40,7 @@ function Result:get_or_else(value) end end ----@param exception any: (optional) The exception to throw if the result is a failure. +---@param exception any? The exception to throw if the result is a failure. function Result:get_or_throw(exception) if self:is_success() then return self.value |
