refactor
This commit is contained in:
17
js/branch.js
Normal file
17
js/branch.js
Normal file
@@ -0,0 +1,17 @@
|
||||
let lib;
|
||||
|
||||
function standard() {
|
||||
return ["master", "release"];
|
||||
}
|
||||
|
||||
function isStandard(b) {
|
||||
return lib.standard().includes(b);
|
||||
}
|
||||
|
||||
function isNonStandard(b) {
|
||||
return !lib.isStandard(b);
|
||||
}
|
||||
|
||||
lib = { standard, isStandard, isNonStandard };
|
||||
|
||||
module.exports = lib;
|
||||
Reference in New Issue
Block a user