Skip to content

Instantly share code, notes, and snippets.

@haru01
Last active April 4, 2019 01:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save haru01/3b99b0d4a66b4a019044327cc7ac4e1d to your computer and use it in GitHub Desktop.
Save haru01/3b99b0d4a66b4a019044327cc7ac4e1d to your computer and use it in GitHub Desktop.
@@ -1,6 +1,6 @@
function generateReadReport(readList, recommendList) {
const reportData = createReportData(readList, recommendList);
- return renderPlainText(reportData, readList, recommendList);
+ return renderPlainText(reportData, recommendList);
}
function createReportData(readList, recommendList) {
@@ -10,7 +10,7 @@ function createReportData(readList, recommendList) {
return reportData;
}
-function renderPlainText(reportData, readList, recommendList) {
+function renderPlainText(reportData, recommendList) {
let report = `name: ${reportData.userName}\n`;
report += '-----\n';
for (let book of reportData.readBooks) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment