Skip to content

Commit

Permalink
✅ test(ci): fix flowtype errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kazupon committed Jun 2, 2017
1 parent c84b3bc commit 94a8a03
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ export default class VueI18n {
locale: Locale,
fallback: Locale,
dateTimeFormats: DateTimeFormats,
key: ?string
key: string
): ?DateTimeFormatResult {
let _locale: Locale = locale
let formats: DateTimeFormat = dateTimeFormats[_locale]
Expand Down Expand Up @@ -399,7 +399,7 @@ export default class VueI18n {
if (!this._root) { throw Error('unexpected error') }
return this._root.d(value, key, locale)
} else {
return ret
return ret || ''
}
}

Expand Down Expand Up @@ -495,7 +495,7 @@ export default class VueI18n {
if (!this._root) { throw Error('unexpected error') }
return this._root.n(value, key, locale)
} else {
return ret
return ret || ''
}
}

Expand Down

0 comments on commit 94a8a03

Please sign in to comment.