Skip to content

Commit

Permalink
Apply standard linting
Browse files Browse the repository at this point in the history
  • Loading branch information
hackergrrl committed Jul 30, 2019
1 parent 34e8733 commit 4388099
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ Commander.prototype.process = function (line) {
self.view.writeLine(`${cmd} is not a command, type /help for commands`)
} else {
line = line.trim()
if (line !== '' && self.channel !== "!status") {
if (line !== '' && self.channel !== '!status') {
self.cabal.publish({
type: 'chat/text',
content: {
Expand Down
6 changes: 3 additions & 3 deletions markdown-shim.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
var ansiEscapes = require("ansi-escapes")
var supportsHyperlinks = require("supports-hyperlinks")
var ansiEscapes = require('ansi-escapes')
var supportsHyperlinks = require('supports-hyperlinks')

var linkPattern = /(\[(.+?)\]\((\S+)\))/

function linkify (text, url) {
return supportsHyperlinks.stdout ? ansiEscapes.link(text, url) : `${text} (${url})`
return supportsHyperlinks.stdout ? ansiEscapes.link(text, url) : `${text} (${url})`
}

// naively parse markdown and return it as a terminal friendly formatting
Expand Down

0 comments on commit 4388099

Please sign in to comment.