Skip to content

Commit

Permalink
fix: check err first before update the database status
Browse files Browse the repository at this point in the history
  • Loading branch information
luin committed Nov 20, 2016
1 parent 2b732bd commit dd46cc3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client/components/main/Main/Database/KeyBrowser/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ class Footer extends React.Component {

updateInfo() {
this.props.redis.info((err, res) => {
if (err) {
return;
}
const info = {};

const lines = res.split('\r\n');
Expand Down

0 comments on commit dd46cc3

Please sign in to comment.