Skip to content

Commit

Permalink
revert changes to scripts/error-codes/invertObject.js
Browse files Browse the repository at this point in the history
  • Loading branch information
kassens committed Jan 9, 2023
1 parent 2a68c2c commit 776a494
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions scripts/error-codes/invertObject.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
*
* 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';

Expand All @@ -16,8 +14,8 @@
* into
* { 0: 'MUCH ERROR', 1: 'SUCH WRONG' }
*/
function invertObject(targetObj /* : ErrorMap */) /* : ErrorMap */ {
const result: {[string]: string} = {};
function invertObject(targetObj /*: ErrorMap */) /*: ErrorMap */ {
const result = {};
const mapKeys = Object.keys(targetObj);

// eslint-disable-next-line no-for-of-loops/no-for-of-loops
Expand Down

0 comments on commit 776a494

Please sign in to comment.