mirror of
https://github.com/crazy-max/ghaction-import-gpg.git
synced 2024-11-22 04:50:56 -05:00
Clean code
This commit is contained in:
parent
1f6a469484
commit
caeb8511cc
2 changed files with 0 additions and 10 deletions
6
dist/index.js
generated
vendored
6
dist/index.js
generated
vendored
|
@ -1432,12 +1432,6 @@ const git = (args = []) => __awaiter(void 0, void 0, void 0, function* () {
|
|||
return res.stdout.trim();
|
||||
});
|
||||
});
|
||||
function getConfig(key) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return yield git(['config', key]);
|
||||
});
|
||||
}
|
||||
exports.getConfig = getConfig;
|
||||
function setConfig(key, value) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
yield git(['config', key, value]);
|
||||
|
|
|
@ -9,10 +9,6 @@ const git = async (args: string[] = []): Promise<string> => {
|
|||
});
|
||||
};
|
||||
|
||||
export async function getConfig(key: string): Promise<string> {
|
||||
return await git(['config', key]);
|
||||
}
|
||||
|
||||
export async function setConfig(key: string, value: string): Promise<void> {
|
||||
await git(['config', key, value]);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue