Skip to content

Commit f916b4e

Browse files
authored
fix(uploader) : Don't include null in files array
better prevent than cure ^^
1 parent f953c12 commit f916b4e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

commands/uploader.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ async function send_to_API(argv, results) {
111111
file: exercise.file
112112
}))
113113
.filter(exercise => exercise.has_file === true)
114+
.filter(exercise => exercise.file !== null)
114115
.map(exercise => ({
115116
filename: path.basename(exercise.file),
116117
exercise: exercise.index,
@@ -230,4 +231,4 @@ function handle_request_status(response) {
230231
throw new BetterError(response.request.url, response.status,response.body.message)
231232
}
232233
}
233-
}
234+
}

0 commit comments

Comments
 (0)