Skip to content

Commit

Permalink
fix(CI): Remove codeclimate and bettercodehub as too many distractions
Browse files Browse the repository at this point in the history
  • Loading branch information
danactive committed Jun 5, 2021
1 parent 9d07c4d commit 6d5057d
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 30 deletions.
4 changes: 0 additions & 4 deletions .bettercodehub.yml

This file was deleted.

20 changes: 0 additions & 20 deletions .codeclimate.yml

This file was deleted.

1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ Your personal **history** storyboarded with photo and video albums. Associate ph
|---|---|
| CI | [![Build Status](https://api.travis-ci.com/danactive/history.png?branch=master)](https://travis-ci.com/danactive/history) |
| Dependencies | [![Dependencies Status](https://david-dm.org/danactive/history.svg)](https://david-dm.org/danactive/history) [![DevDependencies Status](https://david-dm.org/danactive/history/dev-status.svg)](https://david-dm.org/danactive/history#info=devDependencies) |
| Code Quality | [![Code Climate](https://codeclimate.com/github/danactive/history/badges/gpa.svg)](https://codeclimate.com/github/danactive/history) [![BCH compliance](https://bettercodehub.com/edge/badge/danactive/history?branch=master)](https://bettercodehub.com/) |
| Security | [![Known Vulnerabilities](https://snyk.io/test/github/danactive/history/badge.svg)](https://app.snyk.io/org/danactive/project/ca45a886-fc61-402f-9cd1-69bf22b35f24) |
| Test Coverage | [![Coverage Status](https://coveralls.io/repos/github/danactive/history/badge.svg?branch=master)](https://coveralls.io/github/danactive/history?branch=master) |
| License | [![MIT Licensed](http://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](http://opensource.org/licenses/MIT) |
Expand Down
6 changes: 1 addition & 5 deletions app/src/lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,7 @@ const file = {
},
mimeType: (extension) => customMime(extension) || mime.lookup(extension),
mediumType: (extension) => {
if (!extension) {
return false
}

if (typeof extension !== 'string') {
if (!extension || typeof extension !== 'string') {
return false
}

Expand Down

0 comments on commit 6d5057d

Please sign in to comment.