Skip to content

Commit

Permalink
refactor: change getInputData to a function
Browse files Browse the repository at this point in the history
Document getInputData(), and change it to a proper JavaScript function
instead of a arrow function.
  • Loading branch information
aloisklink authored and MindaugasLaganeckas committed Jun 1, 2023
1 parent 5f0f1a8 commit 2024c8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const checkConfigFile = file => {
* If `undefined`, reads from `stdin` instead.
* @returns {Promise<string>} The contents of `inputFile` parsed as `utf8`.
*/
const getInputData = async inputFile => {
async function getInputData (inputFile) {
// if an input file has been specified using '-i', it takes precedence over
// piping from stdin
if (typeof inputFile !== 'undefined') {
Expand Down

0 comments on commit 2024c8e

Please sign in to comment.