mirror of
https://github.com/github/codeql-action.git
synced 2025-12-27 01:30:10 +08:00
18 lines
278 B
JavaScript
18 lines
278 B
JavaScript
'use strict';
|
|
let options = null;
|
|
exports.get = () => {
|
|
if (!options) {
|
|
throw new Error('Options have not yet been set');
|
|
}
|
|
|
|
return options;
|
|
};
|
|
|
|
exports.set = newOptions => {
|
|
if (options) {
|
|
throw new Error('Options have already been set');
|
|
}
|
|
|
|
options = newOptions;
|
|
};
|