Skip to content

Commit bec7873

Browse files
committed
chore: return type annotation for rpc.try_address()
1 parent 7c5532c commit bec7873

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lua/flatten/rpc.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ local M = {}
22

33
---@param addr string
44
---@param startserver boolean
5+
---@return string | integer | nil
56
function M.try_address(addr, startserver)
67
if not addr:find("/") then
78
addr = ("%s/%s"):format(vim.fn.stdpath("run"), addr)

0 commit comments

Comments
 (0)