-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Delete warnings messages on 3party libraries
With this commit, the _G write guard error message, that was not good at all to have. Fix THREESCALE-5816 Signed-off-by: Eloy Coto <[email protected]>
- Loading branch information
Showing
4 changed files
with
27 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,24 @@ | ||
local yaml = require('lyaml.functional') | ||
local init = false | ||
local _M = {} | ||
|
||
yaml.NULL = ngx.null | ||
yaml.isnull = function(value) return value == ngx.null end | ||
local function init_yaml() | ||
if not init then | ||
init = true | ||
yaml = require('lyaml.functional') | ||
yaml.NULL = ngx.null | ||
yaml.isnull = function(value) return value == ngx.null end | ||
YAML = require('lyaml') | ||
_M["load"] = YAML.load | ||
_M["null"] = YAML.null | ||
end | ||
end | ||
|
||
local YAML = require('lyaml') | ||
|
||
local _M = { | ||
load = YAML.load, | ||
null = YAML.null, | ||
local mt = { | ||
__index = function (self, key) | ||
init_yaml() | ||
return _M[key] | ||
end | ||
} | ||
|
||
return _M | ||
return setmetatable({}, mt) |