Skip to content

Commit

Permalink
refactor: Convert to async functions (#11851)
Browse files Browse the repository at this point in the history
  • Loading branch information
sleepwithcoffee committed Mar 22, 2023
1 parent 69581cb commit 77c91f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/classes/utils.js
Expand Up @@ -50,7 +50,7 @@ class Utils {
writeFileSync(filePath, contents, cycles);
}

writeFile(filePath, contents, cycles) {
async writeFile(filePath, contents, cycles) {
return new BbPromise((resolve, reject) => {
try {
this.writeFileSync(filePath, contents, cycles);
Expand All @@ -61,7 +61,7 @@ class Utils {
});
}

appendFileSync(filePath, conts) {
async appendFileSync(filePath, conts) {
const contents = conts || '';

return new BbPromise((resolve, reject) => {
Expand Down
2 changes: 1 addition & 1 deletion lib/classes/yaml-parser.js
Expand Up @@ -8,7 +8,7 @@ class YamlParser {
this.serverless = serverless;
}

parse(yamlFilePath) {
async parse(yamlFilePath) {
const root = this.serverless.utils.readFileSync(yamlFilePath);
const options = {
filter: ['relative', 'remote'],
Expand Down

0 comments on commit 77c91f2

Please sign in to comment.