Skip to content

Commit

Permalink
fix lint error by removing flow from invertObject
Browse files Browse the repository at this point in the history
  • Loading branch information
kassens committed Jan 30, 2023
1 parent ef7370e commit 4da1450
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions scripts/error-codes/invertObject.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,16 @@
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
'use strict';

import type {ErrorMap} from './Types';
/**
* turns
* { 'MUCH ERROR': '0', 'SUCH WRONG': '1' }
* into
* { 0: 'MUCH ERROR', 1: 'SUCH WRONG' }
*/
function invertObject(targetObj /*: ErrorMap */) /*: ErrorMap */ {
function invertObject(targetObj) {
const result /*: {[string]: string} */ = {};
const mapKeys = Object.keys(targetObj);

Expand Down

0 comments on commit 4da1450

Please sign in to comment.