Bug 1366771 - Remove unused variable 'child' from MsgComposeCommands.js. r=jorgk
authorFrank-Rainer Grahl <frgrahl@gmx.net>
Mon, 22 May 2017 07:15:00 +0200
changeset 50282 e4103af6a8014354a4d98d30106652f646c7bb17
parent 50281 849228c56d57b0a9f82f3df7d0a19df0bc413f1b
child 50283 b46a0d6d2173d5a6d9bf38cdb122ec877051eac1
child 50307 9c2ab353fc87453ad40255f63a229f298f291564
child 50342 81a80c4679a52b4a93516959842a874b80b80f73
push id4565
push useracelists@atlas.sk
push dateWed, 24 May 2017 14:43:59 +0000
treeherdertry-comm-central@ed3e87ed9625 [default view] [failures only]
reviewersjorgk
bugs1366771
Bug 1366771 - Remove unused variable 'child' from MsgComposeCommands.js. r=jorgk
mail/components/compose/content/MsgComposeCommands.js
--- a/mail/components/compose/content/MsgComposeCommands.js
+++ b/mail/components/compose/content/MsgComposeCommands.js
@@ -4336,17 +4336,16 @@ function RenameSelectedAttachment()
 function AttachmentElementHasItems()
 {
   var element = document.getElementById("attachmentBucket");
   return element ? (element.getRowCount() > 0) : false;
 }
 
 function OpenSelectedAttachment()
 {
-  let child;
   let bucket = document.getElementById("attachmentBucket");
   if (bucket.selectedItems.length == 1)
   {
     let attachmentUrl = bucket.getSelectedItem(0).attachment.url;
 
     let messagePrefix = /^mailbox-message:|^imap-message:|^news-message:/i;
     if (messagePrefix.test(attachmentUrl))
     {