Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed Oct 5, 2019
1 parent a57c050 commit c11a3c3
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/saber-plugin-search/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,6 @@ exports.apply = (api, options) => {
api.browserApi.add(join(__dirname, 'saber-browser.js'))

if (api.dev) {
// api.hooks.onCreateRenderer.tapPromise(ID, async () => {
// db = await generateDatabase()
// })

api.hooks.onCreateServer.tap(ID, server => {
server.get('/_saber/plugin-search/:locale.json', async (req, res) => {
db = await generateDatabase()
Expand Down

0 comments on commit c11a3c3

Please sign in to comment.