Fix prettier offence in local-dates plugin

This commit is contained in:
Penar Musaraj 2019-01-17 14:22:35 -05:00
parent 020e0d623a
commit 78730062de
1 changed files with 15 additions and 13 deletions

View File

@ -221,22 +221,24 @@
timezones.unshift(options.timezone);
}
timezones.filter(z => z).forEach(timezone => {
if (_isEqualZones(timezone, displayedTimezone)) {
return;
}
timezones
.filter(z => z)
.forEach(timezone => {
if (_isEqualZones(timezone, displayedTimezone)) {
return;
}
if (_isEqualZones(timezone, watchingUserTimezone)) {
timezone = watchingUserTimezone;
}
if (_isEqualZones(timezone, watchingUserTimezone)) {
timezone = watchingUserTimezone;
}
previewedTimezones.push({
timezone,
dateTime: options.time
? dateTime.tz(timezone).format("LLL")
: _createDateTimeRange(dateTime, timezone)
previewedTimezones.push({
timezone,
dateTime: options.time
? dateTime.tz(timezone).format("LLL")
: _createDateTimeRange(dateTime, timezone)
});
});
});
if (!previewedTimezones.length) {
previewedTimezones.push({