Skip to content

Commit

Permalink
chore: clarify table type in workspace class
Browse files Browse the repository at this point in the history
  • Loading branch information
weskoerber committed Oct 16, 2023
1 parent 417eb91 commit c741398
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/obsidian/workspace.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ end

---Determines if cwd is a workspace
---
---@param workspaces table
---@param workspaces table<obsidian.Workspace>
---@return obsidian.Workspace|nil
workspace.get_workspace_from_cwd = function(workspaces)
local cwd = vim.fn.getcwd()
Expand All @@ -41,7 +41,7 @@ end

---Returns the default workspace
---
---@param workspaces table
---@param workspaces table<obsidian.Workspace>
---@return obsidian.Workspace|nil
workspace.get_default_workspace = function(workspaces)
local _, value = next(workspaces)
Expand Down

0 comments on commit c741398

Please sign in to comment.