Skip to content

Commit 7ecaf02

Browse files
authored
Removed the return statement in formatTimeAgo
1 parent e432558 commit 7ecaf02

File tree

1 file changed

+1
-3
lines changed
  • src/pages/2020-07/relative-time-format

1 file changed

+1
-3
lines changed

src/pages/2020-07/relative-time-format/index.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,6 @@ function formatTimeAgo(date) {
131131
}
132132
duration /= division.amount
133133
}
134-
135-
return false
136134
}
137135
```
138136

@@ -154,4 +152,4 @@ formatTimeAgo(new Date().setDate(currentDate.getDate() - 9))
154152

155153
## Conclusion
156154

157-
Internationalization is hard, but with the help of the many internationalization features in JavaScript we can do some pretty amazing stuff with internationalization without writing very much code at all.
155+
Internationalization is hard, but with the help of the many internationalization features in JavaScript we can do some pretty amazing stuff with internationalization without writing very much code at all.

0 commit comments

Comments
 (0)