Skip to content

Commit a2a66a4

Browse files
committed
remove unnecessary comments
1 parent f446aac commit a2a66a4

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

src/useTime.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import { useState, useEffect, useRef } from 'react';
22

3-
/* ---------------------- useTime --------------------- */
4-
53
export default function useTime(settings) {
64
const { format } = settings || {};
75

src/useTimer.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { useState, useEffect, useRef } from 'react';
22

33

4-
// Validate expiryTimestamp
54
function isValidExpiryTimestamp(expiryTimestamp) {
65
const isValid = (new Date(expiryTimestamp)).getTime() > 0;
76
if (!isValid) {
@@ -10,7 +9,6 @@ function isValidExpiryTimestamp(expiryTimestamp) {
109
return isValid;
1110
}
1211

13-
// Validate onExpire
1412
function isValidOnExpire(onExpire) {
1513
const isValid = onExpire && typeof onExpire === 'function';
1614
if (onExpire && !isValid) {

0 commit comments

Comments
 (0)