Skip to content

Commit ce2d22f

Browse files
committed
Renamed and moved originalGetenv -> os._getenv
1 parent 7056432 commit ce2d22f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/env.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
-- Learn more at https://github.com/Wolfyxon/lover/wiki/Constants
33

44
os = os or {}
5+
os._getenv = os.getenv or function() end
56

6-
local originalGetEnv = os.getenv or function () end
77
local loverConsts = {}
88

99
function os.getenv(varname)
10-
return loverConsts[varname] or originalGetEnv(varname)
10+
return loverConsts[varname] or os._getenv(varname)
1111
end
1212

0 commit comments

Comments
 (0)