Skip to content

Commit b1bb8d7

Browse files
authored
TS leftovers (keybase#17775)
1 parent 469aea1 commit b1bb8d7

79 files changed

Lines changed: 53 additions & 160 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎protocol/bin/flow.js‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// @noflow
21
'use strict'
32
const prettier = require('prettier')
43
const promise = require('bluebird')

‎shared/.storybook/config.js‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// @noflow
21
import {configure} from '@storybook/react'
32
import load from '../stories'
43

‎shared/.storybook/webpack.config.js‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// @noflow
21
const webpack = require('webpack')
32
const path = require('path')
43
// you can use this file to add your custom webpack plugins, loaders and anything you like.

‎shared/actions/__tests__/add-new-device.tsx‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ describe('provisioningManagerAddingDevice', () => {
7878
]
7979
keys.forEach(k => {
8080
const response = {error: jest.fn(), result: jest.fn()}
81-
// $FlowIssue
8281
callMap[k](undefined, response, undefined)
8382
expect(response.result).not.toHaveBeenCalled()
8483
expect(response.error).not.toHaveBeenCalled()

‎shared/actions/__tests__/provision.test.tsx‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ describe('provisioningManagerProvisioning', () => {
8080
const keys = ['keybase.1.gpgUi.selectKey', 'keybase.1.loginUi.getEmailOrUsername']
8181
keys.forEach(k => {
8282
const response = {error: jest.fn(), result: jest.fn()}
83-
// $FlowIssue flow is correct in complaining here
8483
callMap[k](undefined as any, response)
8584
expect(response.result).not.toHaveBeenCalled()
8685
expect(response.error).toHaveBeenCalledWith({

‎shared/actions/config/index.tsx‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,6 @@ const routeToInitialScreen = state => {
329329
if (state.config.startupSharePath) {
330330
return [
331331
RouteTreeGen.createSwitchRouteDef({loggedIn: true, path: FsConstants.fsRootRouteForNav1}),
332-
// $FlowIssue thinks it's undefined
333332
FsGen.createSetIncomingShareLocalPath({localPath: state.config.startupSharePath}),
334333
FsGen.createShowIncomingShare({initialDestinationParentPath: FsTypes.stringToPath('/keybase')}),
335334
]

‎shared/actions/people.tsx‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ const getPeopleData = (state, action: PeopleGen.GetPeopleDataPayload) => {
4141
.reduce(Constants.reduceRPCItemToPeopleItem, I.List())
4242

4343
if (debugTodo) {
44-
// $FlowIssue this is true
4544
const allTodos: Array<Types.TodoType> = Object.values(Constants.todoTypeEnumToType)
4645
allTodos.forEach(todoType => {
4746
if (newItems.some(t => t.type === 'todo' && t.todoType === todoType)) {

‎shared/actions/pinentry.tsx‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ const onNewPinentry = (_, action: PinentryGen.NewPinentryPayload) =>
5353
const onSubmit = (_, action: PinentryGen.OnSubmitPayload) => {
5454
const {password} = action.payload
5555
if (_response) {
56-
// $FlowIssue flow is correct in that we need store secret but we weren't sending it before and i don't want to change any existing behavior
5756
_response.result({passphrase: password})
5857
_response = null
5958
}

‎shared/actions/plan-billing.tsx‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// @noflow
21
// import logger from '../logger'
32
import * as Saga from '../util/saga'
43
// import * as Constants from '../constants/plan-billing'

‎shared/actions/profile/__test__/app-link.test.tsx‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// @noflow
21
/* eslint-env jest */
32
import URL from 'url-parse'
43
import {urlToUsername} from '../../../constants/config'

0 commit comments

Comments
 (0)