[polari] cleanup: Don't linebreak before closing parentheses
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari] cleanup: Don't linebreak before closing parentheses
- Date: Sun, 5 Apr 2020 01:36:46 +0000 (UTC)
commit fb2781e5c4aff1538f20049756af6be399de37ea
Author: Florian Müllner <fmuellner gnome org>
Date: Sun Apr 5 03:22:13 2020 +0200
cleanup: Don't linebreak before closing parentheses
Otherwise recent versions of eslint want "dangling" commas,
which is at least ugly considering that most functions don't
allow adding arguments at leasure.
https://gitlab.gnome.org/GNOME/polari/-/merge_requests/155
src/mainWindow.js | 3 +--
src/roomList.js | 3 +--
src/roomStack.js | 6 +++---
src/telepathyClient.js | 5 ++---
src/utils.js | 12 ++++++------
5 files changed, 13 insertions(+), 16 deletions(-)
---
diff --git a/src/mainWindow.js b/src/mainWindow.js
index dccf327f..68804d27 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -400,8 +400,7 @@ var MainWindow = GObject.registerClass({
for (let i = 0; i < urls.length; i++) {
let url = urls[i];
let text = GLib.markup_escape_text(
- this._room.topic.substr(pos, url.pos - pos), -1
- );
+ this._room.topic.substr(pos, url.pos - pos), -1);
let urlText = GLib.markup_escape_text(url.url, -1);
subtitle += `${text} <a href="${urlText}">${urlText}<${'/'}a>`;
pos = url.pos + url.url.length;
diff --git a/src/roomList.js b/src/roomList.js
index b0ae354d..c1fcc2de 100644
--- a/src/roomList.js
+++ b/src/roomList.js
@@ -186,8 +186,7 @@ var RoomRow = GObject.registerClass({
for (let signal of ['message-received', 'pending-message-removed']) {
this._channelSignals.push(
this._room.channel.connect(signal,
- this._updatePending.bind(this))
- );
+ this._updatePending.bind(this)));
}
this._updatePending();
}
diff --git a/src/roomStack.js b/src/roomStack.js
index 3f97ed6a..c821f35a 100644
--- a/src/roomStack.js
+++ b/src/roomStack.js
@@ -96,9 +96,9 @@ class SavePasswordConfirmationBar extends MessageInfoBar {
this._room = room;
let title = _('Should the password be saved?');
- let subtitle = _(
- 'Identification will happen automatically the next time you connect to %s'
- ).format(this._room.account.display_name);
+ let subtitle =
+ _('Identification will happen automatically the next time you connect to %s')
+ .format(this._room.account.display_name);
super._init({ title, subtitle });
this.connect('destroy', this._onDestroy.bind(this));
diff --git a/src/telepathyClient.js b/src/telepathyClient.js
index 3f75251a..180c8b27 100644
--- a/src/telepathyClient.js
+++ b/src/telepathyClient.js
@@ -291,9 +291,8 @@ class TelepathyClient extends Tp.BaseClient {
if (!account.enabled)
return;
- let statuses = Object.keys(Tp.ConnectionPresenceType).map(s =>
- s.replace(/_/g, '-').toLowerCase()
- );
+ let statuses = Object.keys(Tp.ConnectionPresenceType)
+ .map(s => s.replace(/_/g, '-').toLowerCase());
let status = statuses[presence];
let msg = account.requested_status_message;
let accountName = account.display_name;
diff --git a/src/utils.js b/src/utils.js
index 602eef60..5abe1b93 100644
--- a/src/utils.js
+++ b/src/utils.js
@@ -29,13 +29,13 @@ const { Gdk, Gio, GLib, Gtk, Secret, Soup, TelepathyGLib: Tp } = imports.gi;
const AppNotifications = imports.appNotifications;
const SECRET_SCHEMA_ACCOUNT = new Secret.Schema(
- 'org.gnome.Polari.Account', Secret.SchemaFlags.NONE,
- { 'account-id': Secret.SchemaAttributeType.STRING }
-);
+ 'org.gnome.Polari.Account',
+ Secret.SchemaFlags.NONE,
+ { 'account-id': Secret.SchemaAttributeType.STRING });
const SECRET_SCHEMA_IDENTIFY = new Secret.Schema(
- 'org.gnome.Polari.Identify', Secret.SchemaFlags.NONE,
- { 'account-id': Secret.SchemaAttributeType.STRING }
-);
+ 'org.gnome.Polari.Identify',
+ Secret.SchemaFlags.NONE,
+ { 'account-id': Secret.SchemaAttributeType.STRING });
const GPASTE_BASEURL = 'https://paste.gnome.org/';
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]