Skip to content

Commit

Permalink
Lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
SyntaxColoring committed Apr 24, 2024
1 parent 1662cd6 commit 2e11042
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 17 deletions.
13 changes: 0 additions & 13 deletions app-shell/src/protocol-storage/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import fse from 'fs-extra'
import path from 'path'
import { shell } from 'electron'
import first from 'lodash/first'

import {
ADD_PROTOCOL,
Expand Down Expand Up @@ -48,18 +47,6 @@ export const getParsedAnalysisFromPath = (
}
}

export const getProtocolSrcFilePaths = (
protocolKey: string
): Promise<string[]> => {
const protocolDir = `${FileSystem.PROTOCOLS_DIRECTORY_PATH}/${protocolKey}`
return ensureDir(protocolDir)
.then(() => FileSystem.parseProtocolDirs([protocolDir]))
.then(storedProtocols => {
const storedProtocol = first(storedProtocols)
return storedProtocol?.srcFilePaths ?? []
})
}

// Revert a v7.0.0 pre-parity stop-gap solution.
const migrateProtocolsFromTempDirectory = preParityMigrateProtocolsFrom(
FileSystem.PRE_V7_PARITY_DIRECTORY_PATH,
Expand Down
3 changes: 0 additions & 3 deletions app-shell/src/usb.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { ipcMain, IpcMainInvokeEvent } from 'electron'
import axios, { AxiosRequestConfig } from 'axios'
import FormData from 'form-data'
import fs from 'fs'
import path from 'path'

import {
fetchSerialPortList,
Expand All @@ -12,7 +10,6 @@ import {
} from '@opentrons/usb-bridge/node-client'

import { createLogger } from './log'
import { getProtocolSrcFilePaths } from './protocol-storage'
import { usbRequestsStart, usbRequestsStop } from './config/actions'
import {
SYSTEM_INFO_INITIALIZED,
Expand Down
1 change: 0 additions & 1 deletion app/src/redux/shell/remote.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// access main process remote modules via attachments to `global`
import type { AxiosRequestConfig, AxiosResponse } from 'axios'
import type { ResponsePromise } from '@opentrons/api-client'
import type { Remote, NotifyTopic, NotifyResponseData } from './types'

const emptyRemote: Remote = {} as any
Expand Down

0 comments on commit 2e11042

Please sign in to comment.