refactor: simplify

This commit is contained in:
cha0s 2022-03-09 17:21:05 -06:00
parent 3a8bc213d7
commit 2b7c3a8fb8
2 changed files with 2 additions and 10 deletions

View File

@ -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));

View File

@ -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));