Skip to content

Add non-nullable modifier to return type of functions never returning null #224

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 10, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add non-nullable modifier to return type of functions never returning…
… null

Alternatively, use a primitive type instead of nullable boxed type.
  • Loading branch information
vrana authored Mar 10, 2020
commit 6e0cc76418250200c317b565756a8664df0caa0e
2 changes: 1 addition & 1 deletion src/Utilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function validate_(params) {
/**
* Gets the time in seconds, rounded down to the nearest second.
* @param {Date} date The Date object to convert.
* @return {Number} The number of seconds since the epoch.
* @return {number} The number of seconds since the epoch.
* @private
*/
function getTimeInSeconds_(date) {
Expand Down