Skip to content

Conversation

@abaliunov-sc
Copy link

No description provided.

function isTag(tag) {
const tagList = execSync('git tag').toString().split('\n');

for (let i = 0; i < tagList.length; i++) {
Copy link
Contributor

@kvolkovich-sc kvolkovich-sc Aug 9, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not use Array.prototype.indexOf instead of for loop?

#!/usr/bin/env node

var program = require('commander');
var fluidPublish = require('fluid-publish');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add use strict directive.
Using let and const would be fail on NodeJS 4.x.x without it.

@abaliunov-sc
Copy link
Author

Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants