[polari] chatView: Disable no-lonely-if warning
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari] chatView: Disable no-lonely-if warning
- Date: Wed, 14 Aug 2019 19:05:35 +0000 (UTC)
commit 3719e4b5b91d9285e5f19cc8803fe09ea1761ebc
Author: Florian Müllner <fmuellner gnome org>
Date: Tue Aug 6 21:16:27 2019 +0000
chatView: Disable no-lonely-if warning
Usually if an else block contains nothing than an if block, we want to
combine the two as else if.
However here the symmetry between 12- and 24-hour format is more important,
so disable the warning.
https://gitlab.gnome.org/GNOME/polari/merge_requests/133
src/chatView.js | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/src/chatView.js b/src/chatView.js
index 3bcedf1..708842a 100644
--- a/src/chatView.js
+++ b/src/chatView.js
@@ -1195,6 +1195,7 @@ var ChatView = GObject.registerClass({
format = _('%B %d %Y, %H\u2236%M');
}
} else {
+ // eslint-disable-next-line no-lonely-if
if (daysAgo < 1) { // today
/* Translators: Time in 12h format */
format = _('%l\u2236%M %p');
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]