message: refactor: use async / await in addS3BucketToResources
diff: @@ -8,11 +8,12 @@ const cfSchema = require("./cfSchema");
  const readFileAsync = promisify(fs.readFile);
  -const addS3BucketToResources = (bucketName, baseCf) => {
  +const addS3BucketToResources = async (bucketName, baseCf) => {
  const cf = clone(baseCf);
  const filename = path.resolve(__dirname, "../resources.yml");
  - return readFileAsync(filename, "utf-8").then(resourcesContent => {
  + const resourcesContent = await readFileAsync(filename, "utf-8");
  +
  const resources = yaml.safeLoad(resourcesContent, {
  filename,
  schema: cfSchema
  @@ -23,7 +24,6 @@ const addS3BucketToResources = (bucketName, baseCf) => {
  cf.Resources.NextStaticAssetsS3Bucket.Properties.BucketName = bucketName;
  return cf;
  - });
  };
  module.exports = addS3BucketToResources;
  