mirror of
https://github.com/github/codeql-action.git
synced 2026-05-07 14:20:19 +00:00
Allow using a hash to restore SARIF results from a cache and reuse them.
This commit is contained in:
+28
@@ -0,0 +1,28 @@
|
||||
// Generated by CoffeeScript 1.12.7
|
||||
(function() {
|
||||
var XMLDOMStringList;
|
||||
|
||||
module.exports = XMLDOMStringList = (function() {
|
||||
function XMLDOMStringList(arr) {
|
||||
this.arr = arr || [];
|
||||
}
|
||||
|
||||
Object.defineProperty(XMLDOMStringList.prototype, 'length', {
|
||||
get: function() {
|
||||
return this.arr.length;
|
||||
}
|
||||
});
|
||||
|
||||
XMLDOMStringList.prototype.item = function(index) {
|
||||
return this.arr[index] || null;
|
||||
};
|
||||
|
||||
XMLDOMStringList.prototype.contains = function(str) {
|
||||
return this.arr.indexOf(str) !== -1;
|
||||
};
|
||||
|
||||
return XMLDOMStringList;
|
||||
|
||||
})();
|
||||
|
||||
}).call(this);
|
||||
Reference in New Issue
Block a user