mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fix lint errors 2/2
Reviewed By: jeanlauliac Differential Revision: D4628330 fbshipit-source-id: 94fad1294e22fa0073e15843f94241ae778112a0
This commit is contained in:
committed by
Facebook Github Bot
parent
04f42ab075
commit
4d00df41b4
@@ -44,7 +44,8 @@ function transformModule(
|
||||
callback: Callback<TransformedFile>,
|
||||
): void {
|
||||
if (options.filename.endsWith('.json')) {
|
||||
return transformJSON(code, options, callback);
|
||||
transformJSON(code, options, callback);
|
||||
return;
|
||||
}
|
||||
|
||||
const {filename, transformer, variants = defaultVariants} = options;
|
||||
@@ -86,6 +87,7 @@ function transformModule(
|
||||
type: options.polyfill ? 'script' : 'module',
|
||||
});
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
function transformJSON(json, options, callback) {
|
||||
|
||||
Reference in New Issue
Block a user