Skip to content

Commit

Permalink
clean: bad whitespace and Flow types in extractErrors
Browse files Browse the repository at this point in the history
- whitespace errors in extractErrors
- unnecessary Flow comments in invertObject when we're using TS
  - also inconsistent, it looks like they've been removed and replaced
    with TS elsewhere
    - here TS types were added but Flow was also left in
  • Loading branch information
agilgur5 committed Sep 21, 2020
1 parent 2caad24 commit 2d0f279
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/errors/extractErrors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ function ErrorDev(message) {
return error;
}
export default ErrorDev;
export default ErrorDev;
`,
'utf-8'
);
Expand Down
4 changes: 1 addition & 3 deletions src/errors/invertObject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@

type Dict = { [key: string]: any };

export function invertObject(
targetObj: Dict /* : ErrorMap */
) /* : ErrorMap */ {
export function invertObject(targetObj: Dict) {
const result: Dict = {};
const mapKeys = Object.keys(targetObj);

Expand Down

0 comments on commit 2d0f279

Please sign in to comment.