Skip to content

Commit 5737159

Browse files
huynhtrankhanhactions-user
authored andcommitted
Prettified Code!
1 parent 99715ee commit 5737159

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

compiler/cli.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,7 @@ function transform(
4848
break
4949
case 'variable type mismatch':
5050
console.error(`${error.type} at ${JSON.stringify(error.location)}`)
51-
console.error(
52-
`Actual Type: ${error.actualType}`
53-
)
51+
console.error(`Actual Type: ${error.actualType}`)
5452
break
5553
case 'expression no statement':
5654
case 'procedure not found':
@@ -116,7 +114,9 @@ const argv = yargs
116114

117115
// Function to process files based on the provided glob pattern
118116
function processFiles(globPattern: string) {
119-
glob.glob(globPattern).then(files => files.forEach(file => transformFile(file)))
117+
glob
118+
.glob(globPattern)
119+
.then((files) => files.forEach((file) => transformFile(file)))
120120
}
121121

122122
// Define the transform function for a file

0 commit comments

Comments
 (0)