Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/server: fix null search response error
A command search with 0 results would return null and cause the client to throw an error because of invalid json. For example, "bh 'some non-existent-command'" would respond with "Sorry, an error occurred communicating with Bashhub. Response Code: 200" A zero result response now returns {} which the bashhub-client doesn't complain about.
- Loading branch information