refactor: simplify
This commit is contained in:
parent
3a8bc213d7
commit
2b7c3a8fb8
|
@ -57,8 +57,4 @@ class InlineConfig extends Transform {
|
|||
|
||||
}
|
||||
|
||||
export const inlineConfig = (stream, req, flecks) => {
|
||||
const inlineConfig = new InlineConfig(flecks, req);
|
||||
stream.pipe(inlineConfig);
|
||||
return inlineConfig;
|
||||
};
|
||||
export const inlineConfig = (stream, req, flecks) => stream.pipe(new InlineConfig(flecks, req));
|
||||
|
|
|
@ -36,8 +36,4 @@ class Ssr extends Transform {
|
|||
|
||||
}
|
||||
|
||||
export default (stream, req, flecks) => {
|
||||
const ssr = new Ssr(flecks, req);
|
||||
stream.pipe(ssr);
|
||||
return ssr;
|
||||
};
|
||||
export default (stream, req, flecks) => stream.pipe(new Ssr(flecks, req));
|
||||
|
|
Loading…
Reference in New Issue
Block a user