From 3c62386a396ae0c1cd7adbaacc379eb4af072a65 Mon Sep 17 00:00:00 2001 From: William Boman Date: Mon, 15 Aug 2022 21:03:06 +0200 Subject: refactor: introduce selene, harden type defs, and use proper EmmyLua syntax (#296) --- lua/mason-core/optional.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua/mason-core/optional.lua') diff --git a/lua/mason-core/optional.lua b/lua/mason-core/optional.lua index e2b2599f..65317b7f 100644 --- a/lua/mason-core/optional.lua +++ b/lua/mason-core/optional.lua @@ -72,7 +72,7 @@ function Optional:or_(supplier) 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 Optional:or_else_throw(exception) if self:is_present() then return self._value -- cgit v1.2.3-70-g09d2