[gnome-sound-recorder] eslint fix



commit 34a8f3b9c44b7e0dee463d51f704e6dfb4e83180
Author: Kavan Mevada <kavanmevada gmail com>
Date:   Sat Jun 6 00:07:34 2020 +0530

    eslint fix

 src/mainWindow.js | 5 ++---
 src/recorder.js   | 5 ++---
 2 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/src/mainWindow.js b/src/mainWindow.js
index e968bb4..12fe957 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -18,7 +18,6 @@
 *
 */
 
-const Gio = imports.gi.Gio;
 const GObject = imports.gi.GObject;
 const Handy = imports.gi.Handy;
 
@@ -95,8 +94,8 @@ var MainWindow = GObject.registerClass({
     }
 
     onRecordStop() {
-        this._recorder.stop();
-        this._recordingList.insert(0, this._recorder.recording);
+        const recording = this._recorder.stop();
+        this._recordingList.insert(0, recording);
 
         this.wave.endDrawing();
         this.wave = null;
diff --git a/src/recorder.js b/src/recorder.js
index 8772340..9351633 100644
--- a/src/recorder.js
+++ b/src/recorder.js
@@ -1,4 +1,4 @@
-/* exported Record EncodingProfiles */
+/* exported EncodingProfiles Recorder */
 /*
  * Copyright 2013 Meg Ford
  * This library is free software; you can redistribute it and/or
@@ -23,7 +23,6 @@ const GLib = imports.gi.GLib;
 const Gst = imports.gi.Gst;
 const GstPbutils = imports.gi.GstPbutils;
 const Recording = imports.recording.Recording;
-const Gtk = imports.gi.Gtk;
 const GObject = imports.gi.GObject;
 
 const Application = imports.application;
@@ -111,7 +110,7 @@ var Recorder = new GObject.registerClass({
         this.file = Gio.file_new_for_path(fileUri);
 
         if (fileUri === -1)
-            log('Unable to create Recordings directory.')
+            log('Unable to create Recordings directory.');
 
 
         this.recordBus = this.pipeline.get_bus();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]