Skip to content

Commit

Permalink
Fixed Flow errors
Browse files Browse the repository at this point in the history
  • Loading branch information
leo committed Aug 15, 2017
1 parent 3bb9011 commit 35e7b99
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
3 changes: 2 additions & 1 deletion src/providers/aws/get-aws.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
// @flow

// Packages
const aws = require('aws-sdk')

const getAWS = authConfig => {
const getAWS = (authConfig: Object) => {
const { credentials } = authConfig
const awsCredentials: Object = credentials.find(c => c.provider === 'aws')

Expand Down
6 changes: 3 additions & 3 deletions src/providers/gcp/deploy.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// @flow

// theirs
// Packages
const ms = require('ms')
const fetch = require('node-fetch')
const minimist = require('minimist')
Expand All @@ -10,7 +10,7 @@ const bytes = require('bytes')
const sleep = require('then-sleep')
const debug = require('debug')('now:gcp:deploy')

// ours
// Utilities
const ok = require('../../util/output/ok')
const info = require('../../util/output/info')
const wait = require('../../util/output/wait')
Expand Down Expand Up @@ -228,7 +228,7 @@ const deploy = async (ctx: {

let retriesLeft = 10
let status
let url
let url = ''

do {
if (!--retriesLeft) {
Expand Down
8 changes: 5 additions & 3 deletions src/util/copy-to-clipboard.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
// @flow

// Packages
const { write } = require('clipboardy')

const copyToClipboard = async (
str: string,
shouldCopy = 'auto',
isTTY = process.stdout.isTTY
): boolean => {
shouldCopy: boolean | string = 'auto',
// $FlowFixMe
isTTY: boolean = process.stdout.isTTY
): Promise<boolean> => {
if (shouldCopy === false) {
return false
}
Expand Down

0 comments on commit 35e7b99

Please sign in to comment.