Skip to content

Commit

Permalink
feat: use util result in message directly
Browse files Browse the repository at this point in the history
  • Loading branch information
2KAbhishek committed Dec 1, 2024
1 parent 5e784b2 commit 5bd2da2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lua/exercism/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,7 @@ M.submit_exercise = function()
utils.async_shell_execute(submit_cmd, function(result)
if result then
vim.schedule(function()
local output = type(result) == 'table' and table.concat(result, '\n') or tostring(result)
local message = string.format('Exercise submitted successfully!\n%s', vim.trim(output))
local message = string.format('Exercise submitted successfully!\n%s', vim.trim(result))
utils.show_notification(message, vim.log.levels.INFO, 'Exercism')
end)
end
Expand Down

0 comments on commit 5bd2da2

Please sign in to comment.