File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -18,18 +18,18 @@ async function validate(args: string[]) {
18
18
19
19
// -y --yaml - default coderoad-config.yml
20
20
const options = {
21
- yaml : getArg ( args , { name : "yaml" , alias : "y" } ) || "coderoad.yaml" ;
22
- }
21
+ yaml : getArg ( args , { name : "yaml" , alias : "y" } ) || "coderoad.yaml" ,
22
+ } ;
23
23
24
24
const _yaml = await read ( path . join ( localDir , options . yaml ) , "utf8" ) ;
25
25
26
26
// parse yaml config
27
27
let config ;
28
28
try {
29
- config = yamlParser . load ( _yaml )
29
+ config = yamlParser . load ( _yaml ) ;
30
30
// TODO: validate yaml
31
31
if ( ! config || ! config . length ) {
32
- throw new Error ( ' Invalid yaml file contents' )
32
+ throw new Error ( " Invalid yaml file contents" ) ;
33
33
}
34
34
} catch ( e ) {
35
35
console . error ( "Error parsing yaml" ) ;
You can’t perform that action at this time.
0 commit comments