Fix formatting

This commit is contained in:
Niklas von Hertzen 2017-08-06 15:52:56 +08:00
parent 6baa847092
commit f0fdeac703
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ const TEXT_SHADOW_PROPERTY = /((rgba|rgb)\([^\)]+\)(\s-?\d+px){3})/g;
const TEXT_SHADOW_VALUES = /(-?\d+px)|(#.+)|(rgb\(.+\))|(rgba\(.+\))/g;
export const parseTextShadow = (textShadow: ?string): Array<TextShadow> | null => {
if (textShadow === 'none' || typeof(textShadow) !== 'string') {
if (textShadow === 'none' || typeof textShadow !== 'string') {
return null;
}

View File

@ -32,7 +32,7 @@ const parseTransformOrigin = (origin: string): TransformOrigin => {
};
const parseTransformMatrix = (transform: ?string): Matrix | null => {
if (transform === 'none' || typeof(transform) !== 'string') {
if (transform === 'none' || typeof transform !== 'string') {
return null;
}