Skip to content

Commit 4da1450

Browse files
committed
fix lint error by removing flow from invertObject
1 parent ef7370e commit 4da1450

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

scripts/error-codes/invertObject.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,16 @@
33
*
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
6-
*
7-
* @flow
86
*/
97
'use strict';
108

11-
import type {ErrorMap} from './Types';
129
/**
1310
* turns
1411
* { 'MUCH ERROR': '0', 'SUCH WRONG': '1' }
1512
* into
1613
* { 0: 'MUCH ERROR', 1: 'SUCH WRONG' }
1714
*/
18-
function invertObject(targetObj /*: ErrorMap */) /*: ErrorMap */ {
15+
function invertObject(targetObj) {
1916
const result /*: {[string]: string} */ = {};
2017
const mapKeys = Object.keys(targetObj);
2118

0 commit comments

Comments
 (0)