浏览代码

Sanity-check decaffeinate app.UpdateChecker

Simon Legner 1 年之前
父节点
当前提交
c022a29fab
共有 1 个文件被更改,包括 1 次插入8 次删除
  1. 1 8
      assets/javascripts/app/update_checker.js

+ 1 - 8
assets/javascripts/app/update_checker.js

@@ -1,16 +1,9 @@
-// TODO: This file was created by bulk-decaffeinate.
-// Sanity-check the conversion and remove this comment.
-/*
- * decaffeinate suggestions:
- * DS207: Consider shorter variations of null checks
- * Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md
- */
 app.UpdateChecker = class UpdateChecker {
   constructor() {
     this.lastCheck = Date.now();
 
     $.on(window, "focus", () => this.onFocus());
-    if (app.serviceWorker != null) {
+    if (app.serviceWorker) {
       app.serviceWorker.on("updateready", () => this.onUpdateReady());
     }