Skip to content

Commit

Permalink
Skip source URL for loose lua files
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonsturgeon committed Oct 17, 2023
1 parent 1d1164b commit c486f64
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion moon/cfc_err_forwarder/formatter/get_source_url.moon
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ publicGamemodes = {
if root == "gamemodes"
return "https://github.com/Facepunch/garrysmod/blob/master/garrysmod/#{source}#L#{line}"

assert root == "addons"
-- If the root isn't a Gamemode or Addon, we can't get a source URL for it
return if root ~= "addons"

fetchPath = "addons/#{mainDir}/.git/FETCH_HEAD", "GAME"
return unless file.Exists fetchPath, "GAME"
Expand Down

0 comments on commit c486f64

Please sign in to comment.