Skip to content

Commit

Permalink
Strip comments. Refs blinksh#1755
Browse files Browse the repository at this point in the history
  • Loading branch information
yury committed Jul 18, 2023
1 parent ff815b3 commit 70970f8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions Blink/Snippets/EditorViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -222,10 +222,6 @@ class EditorViewController: UIViewController, TextViewDelegate, UINavigationItem
get {
_keyCommands
}

set {
_keyCommands = newValue
}
}

required init?(coder: NSCoder) {
Expand Down
2 changes: 1 addition & 1 deletion BlinkSnippets/ShellOutputFormatter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public enum ShellOutputFormatter {
.components(separatedBy: .newlines) {
let trimmedLine = line.trimmingCharacters(in: .whitespaces)

if trimmedLine.isEmpty {
if trimmedLine.isEmpty || trimmedLine.hasPrefix("#") {
continue
}

Expand Down

0 comments on commit 70970f8

Please sign in to comment.