File tree 3 files changed +2
-10
lines changed
lib/modules/page/task-actions
src/modules/page/task-actions
3 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -10,10 +10,6 @@ function getCommand(actionString) {
10
10
}
11
11
exports . getCommand = getCommand ;
12
12
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
- }
17
13
var parser = new parse_params_1 . default ( ) ;
18
14
var command = getCommand ( actionString ) ;
19
15
var params = actionString . substring ( command . length + 1 , actionString . length - 1 ) ;
Original file line number Diff line number Diff line change 10
10
" tutorial"
11
11
],
12
12
"bugs" : {
13
- "url" : " //github.com/coderoad/atom-coderoad"
13
+ "url" : " https: //github.com/coderoad/atom-coderoad"
14
14
},
15
15
"license" : " Apache" ,
16
16
"author" :
" Shawn McKay <[email protected] >" ,
23
23
" *.md"
24
24
],
25
25
"main" : " ./lib/index.js" ,
26
- "repository" : " //github.com/coderoad/atom-coderoad" ,
26
+ "repository" : " https: //github.com/coderoad/atom-coderoad" ,
27
27
"scripts" : {
28
28
"compile" : " tsc" ,
29
29
"test" : " tsc test/*.ts src/typings.d.ts && ava"
Original file line number Diff line number Diff line change @@ -11,10 +11,6 @@ export function getCommand(actionString: string): string {
11
11
}
12
12
13
13
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
- }
18
14
// content in brackets, split by comma
19
15
let parser = new ParseParams ( ) ;
20
16
let command = getCommand ( actionString ) ;
You can’t perform that action at this time.
0 commit comments