Skip to content

Commit

Permalink
changed function to be camelcase instead of snakecase. relatively mea…
Browse files Browse the repository at this point in the history
…ningless change to trigger frontend change

Signed-off-by: Amndeep Singh Mann <[email protected]>
  • Loading branch information
Amndeep7 committed Jul 31, 2024
1 parent 760cfeb commit a4c8ba2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions apps/frontend/src/store/report_intake.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import {InspecDataModule} from '@/store/data_store';
import Store from '@/store/store';
import {Tag} from '@/types/models';
import {read_file_async} from '@/utilities/async_util';
import {readFileAsync} from '@/utilities/async_util';
import {
ASFFResults as ASFFResultsMapper,
BurpSuiteMapper,
Expand Down Expand Up @@ -136,7 +136,7 @@ export class InspecIntake extends VuexModule {
const filename =
options.file?.name || options.filename || 'Missing Filename';
if (options.file) {
read = await read_file_async(options.file);
read = await readFileAsync(options.file);
} else if (options.data) {
read = options.data;
} else {
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend/src/utilities/async_util.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* Provides async wrappers over various common functions/tasks */

/** Provides the resulting text of reading a file as a promise */
export async function read_file_async(file: File): Promise<string> {
export async function readFileAsync(file: File): Promise<string> {
const reader = new FileReader();
return new Promise((resolve, reject) => {
reader.onerror = () => {
Expand Down

0 comments on commit a4c8ba2

Please sign in to comment.