Skip to content

Commit 3551416

Browse files
committed
chore: use spread instead of concat
1 parent ca13f10 commit 3551416

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/grammars/c.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,10 @@ const Cpp = {
128128
.slice(-1 >= "14399")
129129
) {
130130
filepath = path.posix.join
131-
.apply(
132-
path.posix,
133-
[].concat([filepath.split(path.win32.sep)[0].toLowerCase()], filepath.split(path.win32.sep).slice(1))
134-
)
131+
.apply(path.posix, [
132+
filepath.split(path.win32.sep)[0].toLowerCase(),
133+
...filepath.split(path.win32.sep).slice(1),
134+
])
135135
.replace(":", "")
136136
cmdArgs = `g++ -std=c++14 ${options} -include iostream /mnt/${filepath} -o /tmp/cpp.out && /tmp/cpp.out`
137137
}

0 commit comments

Comments
 (0)