Skip to content

A platform for community discussion. Free, open, simple.

Fix Prettier again

Penar Musaraj6e74350f1871
diff --git a/app/assets/javascripts/discourse/lib/push-notifications.js.es6 b/app/assets/javascripts/discourse/lib/push-notifications.js.es6
index 3d9e7baf3da..20040a8b110 100644
--- a/app/assets/javascripts/discourse/lib/push-notifications.js.es6
+++ b/app/assets/javascripts/discourse/lib/push-notifications.js.es6
@@ -50,9 +50,9 @@ export function isPushNotificationsSupported(mobileView) {
!(
"serviceWorker" in navigator &&
ServiceWorkerRegistration &&
- typeof Notification !== "undefined" &&
- "showNotification" in ServiceWorkerRegistration.prototype &&
- "PushManager" in window
+ typeof Notification !== "undefined" &&
+ "showNotification" in ServiceWorkerRegistration.prototype &&
+ "PushManager" in window
)
) {
return false;
diff --git a/app/assets/javascripts/discourse/lib/transform-post.js.es6 b/app/assets/javascripts/discourse/lib/transform-post.js.es6
index a3ff0060314..a0189345210 100644
--- a/app/assets/javascripts/discourse/lib/transform-post.js.es6
+++ b/app/assets/javascripts/discourse/lib/transform-post.js.es6
@@ -239,7 +239,8 @@ export default function transformPost(
postAtts.showFlagDelete =
!postAtts.canDelete &&
postAtts.yours &&
- currentUser && !currentUser.staff;
+ currentUser &&
+ !currentUser.staff;
} else {
postAtts.canRecover = postAtts.isDeleted && postAtts.canRecover;
postAtts.canDelete =
diff --git a/app/assets/javascripts/discourse/widgets/topic-timeline.js.es6 b/app/assets/javascripts/discourse/widgets/topic-timeline.js.es6
index 82c38677a98..eedb6cf06ef 100644
--- a/app/assets/javascripts/discourse/widgets/topic-timeline.js.es6
+++ b/app/assets/javascripts/discourse/widgets/topic-timeline.js.es6
@@ -211,7 +211,8 @@ createWidget("timeline-scrollarea", {
position.lastRead > 3 &&
Math.abs(position.lastRead - position.current) > 3 &&
Math.abs(position.lastRead - position.total) > 1 &&
- position.lastRead && position.lastRead !== position.total;
+ position.lastRead &&
+ position.lastRead !== position.total;
if (hasBackPosition) {
const lastReadTop = Math.round(
diff --git a/app/assets/javascripts/select-kit/components/composer-actions.js.es6 b/app/assets/javascripts/select-kit/components/composer-actions.js.es6
index bb4a578e34f..f42643f03c0 100644
--- a/app/assets/javascripts/select-kit/components/composer-actions.js.es6
+++ b/app/assets/javascripts/select-kit/components/composer-actions.js.es6
@@ -132,7 +132,9 @@ export default DropdownSelectBoxComponent.extend({
(action !== REPLY && _topicSnapshot) ||
(action === REPLY &&
_topicSnapshot &&
- options.userAvatar && options.userLink && options.topicLink)
+ options.userAvatar &&
+ options.userLink &&
+ options.topicLink)
) {
items.push({
name: I18n.t("composer.composer_actions.reply_to_topic.label"),