Skip to content

Commit

Permalink
style: apply eslint and prettier autofixes
Browse files Browse the repository at this point in the history
  • Loading branch information
NickDJM committed Sep 27, 2021
1 parent 8df1f52 commit b231d8a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
const yaml = require("yaml");

module.exports.readVersion = contents => yaml.parse(contents, "utf8").version;
// Get the current version in the yaml file.
module.exports.readVersion = (contents) => yaml.parse(contents, "utf8").version;

// Update the version in the yaml file.
module.exports.writeVersion = (contents, version) => {
const yamlFile = yaml.parse(contents, "utf8");
yamlFile.version = version;
Expand Down

0 comments on commit b231d8a

Please sign in to comment.