Skip to content

Commit 90cb97a

Browse files
committed
Remove duplicate dot
1 parent 4d5abee commit 90cb97a

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/errors.janet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
:command-error 5})
1313

1414
(defn format-command-errors [command errors]
15-
(map (fn [error] (string command " " (string/ascii-lower error) ".")) errors))
15+
(map (fn [error] (string command " " (string/ascii-lower error))) errors))
1616

1717
(defn print-errors [errors exit-status-code]
1818
(each error errors (print (string error ".")))

test/commands/list_contacts_test.janet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@
3232
(deftest "when the directory doesn't exist"
3333
(def arguments {"list-contacts" "test/missing-directory"})
3434
(def result (build-command arguments))
35-
(test (first (result :errors)) "--list-contacts directory does not exist."))
35+
(test (first (result :errors)) "--list-contacts directory does not exist"))

test/commands/schedule_contacts_test.janet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,4 +127,4 @@
127127
(def arguments {"schedule-contacts" "test/examples/people"})
128128
(def result (build-command arguments))
129129
(test (nil? (result :command)) true)
130-
(test (first (result :errors)) "--schedule-contacts directory does not exist."))
130+
(test (first (result :errors)) "--schedule-contacts directory does not exist"))

test/commands/schedule_tasks_test.janet

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,16 +225,16 @@
225225
(def arguments {"schedule-tasks" "test/examples/missing-schedule.md"})
226226
(def result (build-command arguments))
227227
(test (nil? (result :command)) true)
228-
(test (first (result :errors)) "--schedule-tasks file does not exist."))
228+
(test (first (result :errors)) "--schedule-tasks file does not exist"))
229229

230230
(deftest "returns an error when the schedule cannot be parsed"
231231
(def arguments {"schedule-tasks" "test/examples/unparsable-schedule.md"})
232232
(def result (build-command arguments))
233233
(test (nil? (result :command)) true)
234-
(test (first (result :errors)) "--schedule-tasks schedule can not be parsed."))
234+
(test (first (result :errors)) "--schedule-tasks schedule can not be parsed"))
235235

236236
(deftest "returns an error when the schedule is empty"
237237
(def arguments {"schedule-tasks" "test/examples/empty-schedule.md"})
238238
(def result (build-command arguments))
239239
(test (nil? (result :command)) true)
240-
(test (first (result :errors)) "--schedule-tasks schedule is empty."))
240+
(test (first (result :errors)) "--schedule-tasks schedule is empty"))

0 commit comments

Comments
 (0)