From 3c510fa4c913207d596828a968452421e0a12911 Mon Sep 17 00:00:00 2001 From: Lam Wei Li Date: Sun, 23 Jan 2022 21:09:32 +0800 Subject: [PATCH] fixed eslint --- lib/layouts.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/layouts.js b/lib/layouts.js index 6cf412d1..76231faf 100644 --- a/lib/layouts.js +++ b/lib/layouts.js @@ -156,16 +156,19 @@ function patternLayout(pattern, tokens) { break; case 'ABSOLUTE': debug("DEPRECATION: Pattern %d{ABSOLUTE} is deprecated and replaced by %d{ABSOLUTETIME}."); + // falls through case 'ABSOLUTETIME': case 'ABSOLUTETIME_FORMAT': format = dateFormat.ABSOLUTETIME_FORMAT; break; case 'DATE': debug("DEPRECATION: Pattern %d{DATE} is deprecated and replaced by %d{DATETIME}."); + // falls through case 'DATETIME': case 'DATETIME_FORMAT': format = dateFormat.DATETIME_FORMAT; break; + // no default } } // Format the date