mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-06 22:38:37 +08:00
Fix flow errors
Reviewed By: davidaurelio Differential Revision: D4619990 fbshipit-source-id: 80355b8f0d0c3f84691098a05cdf2ba136c4bf53
This commit is contained in:
committed by
Facebook Github Bot
parent
20ad2b3fbb
commit
37b91a63c7
@@ -11,6 +11,7 @@
|
||||
|
||||
'use strict';
|
||||
|
||||
const nullthrows = require('fbjs/lib/nullthrows');
|
||||
const path = require('path');
|
||||
|
||||
import type {PackageData} from '../types.flow';
|
||||
@@ -51,7 +52,7 @@ module.exports = class Package {
|
||||
}
|
||||
|
||||
getName() {
|
||||
return this.data.then(p => p.name);
|
||||
return this.data.then(p => nullthrows(p.name));
|
||||
}
|
||||
|
||||
isHaste() {
|
||||
|
||||
Reference in New Issue
Block a user