🎨 remove unnessecery if statement
This commit is contained in:
parent
9fb4f24427
commit
827678dfcf
1 changed files with 2 additions and 5 deletions
|
@ -1,7 +1,4 @@
|
|||
export default async (numOfSeconds: number, date: Date) => {
|
||||
if (!numOfSeconds) throw new Error("numOfSeconds is required");
|
||||
|
||||
date.setSeconds(date.getSeconds() + numOfSeconds);
|
||||
|
||||
export default async (seconds: number, date: Date) => {
|
||||
date.setSeconds(date.getSeconds() + seconds);
|
||||
return date;
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue