Skip to content
This repository has been archived by the owner on Mar 30, 2020. It is now read-only.

Commit

Permalink
v1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
chalkpe committed May 7, 2017
1 parent 7630902 commit 2e91458
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "welcomes",
"version": "1.0.0",
"version": "1.0.1",
"description": "Welcome message for shells",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion plugins/dimibob.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ module.exports = async argv => {
}

const { data } = await axios(options)
if (typeof data !== 'object' || !data[meal]) throw new Error('not found')
if (typeof data !== 'object' || !data[meal]) return {}

const highlights = []
const list = data[meal].split(/[ */]/).filter(x => x)
Expand Down
2 changes: 1 addition & 1 deletion plugins/hangang.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = async argv => {
}

let { data } = await axios(options)
if (typeof data !== 'object') throw new Error()
if (!(typeof data === 'object' && 'temp' in data)) return {}

const temp = parseFloat(data.temp)
const powerline = {
Expand Down

0 comments on commit 2e91458

Please sign in to comment.