1
0
Fork 0
mirror of https://github.com/classchartsapi/classcharts-api-js.git synced 2026-05-14 11:58:13 +00:00

chore: syntax & biome.js changes

This commit is contained in:
James Cook 2024-01-10 10:57:33 +00:00
parent 790a5a6aa6
commit a64fd6a718
8 changed files with 67 additions and 42 deletions

View file

@ -35,7 +35,9 @@ export class StudentClient extends BaseClient {
* Authenticates with ClassCharts
*/
async login(): Promise<void> {
if (!this.studentCode) throw new Error("Student Code not provided");
if (!this.studentCode) {
throw new Error("Student Code not provided");
}
const formData = new URLSearchParams();
formData.append("_method", "POST");
formData.append("code", this.studentCode.toUpperCase());