Pārlūkot izejas kodu

chore(subParsers/images): fix jshint error

Quick fix for jshint error that was preventing Travis to test the lib properly
Estevão Soares dos Santos 10 gadi atpakaļ
vecāks
revīzija
6f01208836
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      src/subParsers/images.js

+ 1 - 1
src/subParsers/images.js

@@ -39,7 +39,7 @@ showdown.subParser('images', function (text, options, globals) {
     url = showdown.helper.escapeCharacters(url, '*_', false);
     var result = '<img src="' + url + '" alt="' + altText + '"';
 
-    if (title != "") {
+    if (title) {
       title = title.replace(/"/g, '&quot;');
       title = showdown.helper.escapeCharacters(title, '*_', false);
       result += ' title="' + title + '"';