不要怂,就是干,撸起袖子干!

Commit ad124e3b by Mick Hansen

Merge pull request #5255 from tornillo/master

Fix jshint errors
2 parents c1f37c53 1213f503
...@@ -93,7 +93,7 @@ Comment.prototype.putString = function(str) { ...@@ -93,7 +93,7 @@ Comment.prototype.putString = function(str) {
Comment.prototype.putLine = function(str) { Comment.prototype.putLine = function(str) {
str = str || ''; str = str || '';
this.putString(str + "\n"); this.putString(str + '\n');
}; };
Comment.prototype.putLines = function(lines) { Comment.prototype.putLines = function(lines) {
...@@ -103,7 +103,7 @@ Comment.prototype.putLines = function(lines) { ...@@ -103,7 +103,7 @@ Comment.prototype.putLines = function(lines) {
}; };
Comment.prototype.toString = function () { Comment.prototype.toString = function () {
return this.string + "\n"; return this.string + '\n';
}; };
['class', 'mixin', 'constructor'].forEach(function (prop) { ['class', 'mixin', 'constructor'].forEach(function (prop) {
...@@ -260,7 +260,7 @@ var parseComments = function (comments, file) { ...@@ -260,7 +260,7 @@ var parseComments = function (comments, file) {
return output; return output;
}; };
var code, obj, output, path; var obj, path;
new git.Repo(path.dirname(__filename) + '/..', function (err, repo) { new git.Repo(path.dirname(__filename) + '/..', function (err, repo) {
repo.head(function (err, status) { repo.head(function (err, status) {
...@@ -271,7 +271,7 @@ new git.Repo(path.dirname(__filename) + '/..', function (err, repo) { ...@@ -271,7 +271,7 @@ new git.Repo(path.dirname(__filename) + '/..', function (err, repo) {
obj = dox.parseComments(code.toString(), { raw: true}); obj = dox.parseComments(code.toString(), { raw: true});
path = program.out + '/' + file.output + '.md'; path = program.out + '/' + file.output + '.md';
console.log(path) console.log(path);
var output = parseComments(obj, file.file); var output = parseComments(obj, file.file);
fs.writeFile(path, output); fs.writeFile(path, output);
......
'use strict';
/** /**
The entry point. The entry point.
@module Sequelize @module Sequelize
**/ **/
module.exports = require("./lib/sequelize"); module.exports = require('./lib/sequelize');
'use strict';
var path = require('path'); var path = require('path');
module.exports = { module.exports = {
......
module.exports = require('../support'); 'use strict';
\ No newline at end of file
module.exports = require('../support');
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!