Skip to content

Commit 09de7a4

Browse files
committed
updates
1 parent 84a281b commit 09de7a4

File tree

3 files changed

+2
-10
lines changed

3 files changed

+2
-10
lines changed

lib/modules/page/task-actions/parser.js

-4
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ function getCommand(actionString) {
1010
}
1111
exports.getCommand = getCommand;
1212
function getParams(actionString) {
13-
if (typeof actionString !== 'string') {
14-
console.log('Error in tutorial with action command. Expected a string but received ', actionString);
15-
return [];
16-
}
1713
var parser = new parse_params_1.default();
1814
var command = getCommand(actionString);
1915
var params = actionString.substring(command.length + 1, actionString.length - 1);

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"tutorial"
1111
],
1212
"bugs": {
13-
"url": "//github.com/coderoad/atom-coderoad"
13+
"url": "https://github.com/coderoad/atom-coderoad"
1414
},
1515
"license": "Apache",
1616
"author": "Shawn McKay <[email protected]>",
@@ -23,7 +23,7 @@
2323
"*.md"
2424
],
2525
"main": "./lib/index.js",
26-
"repository": "//github.com/coderoad/atom-coderoad",
26+
"repository": "https://github.com/coderoad/atom-coderoad",
2727
"scripts": {
2828
"compile": "tsc",
2929
"test": "tsc test/*.ts src/typings.d.ts && ava"

src/modules/page/task-actions/parser.ts

-4
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ export function getCommand(actionString: string): string {
1111
}
1212

1313
export function getParams(actionString: string): string[] {
14-
if (typeof actionString !== 'string') {
15-
console.log('Error in tutorial with action command. Expected a string but received ', actionString);
16-
return [];
17-
}
1814
// content in brackets, split by comma
1915
let parser = new ParseParams();
2016
let command = getCommand(actionString);

0 commit comments

Comments
 (0)