Last active
April 4, 2019 01:50
-
-
Save haru01/0067f8864caaed66c34d970737d02254 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -1,6 +1,6 @@ | |
function generateReadReport(readList, recommendList) { | |
const reportData = createReportData(readList, recommendList); | |
- return renderPlainText(reportData, recommendList); | |
+ return renderPlainText(reportData); | |
} | |
function createReportData(readList, recommendList) { | |
@@ -42,7 +42,7 @@ function createReportData(readList, recommendList) { | |
} | |
} | |
-function renderPlainText(reportData, recommendList) { | |
+function renderPlainText(reportData) { | |
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