[gnome-sound-recorder] record: remove unused this.localMsg
- From: Bilal Elmoussaoui <bilelmoussaoui src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-sound-recorder] record: remove unused this.localMsg
- Date: Sat, 6 Jun 2020 07:04:16 +0000 (UTC)
commit 915aab248604a1d82834d631432e7f22c12cf600
Author: Kavan Mevada <kavanmevada gmail com>
Date: Fri Jun 5 22:44:45 2020 +0530
record: remove unused this.localMsg
src/record.js | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/record.js b/src/record.js
index 73182d0..8b289f9 100644
--- a/src/record.js
+++ b/src/record.js
@@ -153,12 +153,11 @@ var Record = new GObject.registerClass({
}
_onMessageReceived(message) {
- this.localMsg = message;
switch (message.type) {
case Gst.MessageType.ELEMENT: {
- if (GstPbutils.is_missing_plugin_message(this.localMsg)) {
- let detail = GstPbutils.missing_plugin_message_get_installer_detail(this.localMsg);
- let description = GstPbutils.missing_plugin_message_get_description(this.localMsg);
+ if (GstPbutils.is_missing_plugin_message(message)) {
+ let detail = GstPbutils.missing_plugin_message_get_installer_detail(message);
+ let description = GstPbutils.missing_plugin_message_get_description(message);
log(`Detail: ${detail}\nDescription: ${description}`);
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]