Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optional extra indentation of chained methods #894

Closed
qwelias opened this issue Mar 4, 2016 · 1 comment
Closed

Optional extra indentation of chained methods #894

qwelias opened this issue Mar 4, 2016 · 1 comment

Comments

@qwelias
Copy link

qwelias commented Mar 4, 2016

Input:

new sql.Request()
.query(query.query)
.then((data) => {
    res.json({
        result: true
    });
})
.catch((e) => {
    e.status = e.status || 500;
    Log(e.stack || e);
    res.status(e.status).end();
});

Expected:

new sql.Request()
.query(query.query)
.then((data) => {
    res.json({
        result: true
    });
})
.catch((e) => {
    e.status = e.status || 500;
    Log(e.stack || e);
    res.status(e.status)
    .end();
});

Actual:

new sql.Request()
    .query(query.query)
    .then((data) => {
        res.json({
            result: true
        });
    })
    .catch((e) => {
        e.status = e.status || 500;
        Log(e.stack || e);
        res.status(e.status)
            .end();
    });
@bitwiseman
Copy link
Member

See #482

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

No branches or pull requests

2 participants