Skip to content
This repository has been archived by the owner on Dec 10, 2022. It is now read-only.

Commit

Permalink
Fix linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
tdmalone committed Aug 19, 2018
1 parent b53257c commit 9e43cf6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,9 @@ const getVersion = ( event ) => {
// Current git commit of this app.
/* eslint-disable no-process-env */
let commit;
const SHORT_COMMIT_HASH_LENGTH = 7;
if ( process.env.HEROKU_SLUG_COMMIT ) {
commit = process.env.HEROKU_SLUG_COMMIT.slice( 0, 7 );
commit = process.env.HEROKU_SLUG_COMMIT.slice( 0, SHORT_COMMIT_HASH_LENGTH );
} else {
try {
commit = execSync( 'git rev-parse --short HEAD' ).toString().trim();
Expand Down

0 comments on commit 9e43cf6

Please sign in to comment.