mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-09-02 04:16:36 +02:00
style(eslint): match operator-linebreak preferences
This commit is contained in:
committed by
Julian Lam
parent
89c025d102
commit
ba619c7ec8
@@ -88,9 +88,9 @@ function buildBreadcrumbs(currentFolder) {
|
||||
var dir = path.join(currentPath, part);
|
||||
crumbs.push({
|
||||
text: part || 'Uploads',
|
||||
url: part
|
||||
? (nconf.get('relative_path') + '/admin/manage/uploads?dir=' + dir)
|
||||
: nconf.get('relative_path') + '/admin/manage/uploads',
|
||||
url: part ?
|
||||
(nconf.get('relative_path') + '/admin/manage/uploads?dir=' + dir) :
|
||||
nconf.get('relative_path') + '/admin/manage/uploads',
|
||||
});
|
||||
currentPath = dir;
|
||||
});
|
||||
|
||||
@@ -249,10 +249,10 @@ Controllers.robots = function (req, res) {
|
||||
if (meta.config['robots:txt']) {
|
||||
res.send(meta.config['robots:txt']);
|
||||
} else {
|
||||
res.send('User-agent: *\n'
|
||||
+ 'Disallow: ' + nconf.get('relative_path') + '/admin/\n'
|
||||
+ 'Disallow: ' + nconf.get('relative_path') + '/reset/\n'
|
||||
+ 'Sitemap: ' + nconf.get('url') + '/sitemap.xml');
|
||||
res.send('User-agent: *\n' +
|
||||
'Disallow: ' + nconf.get('relative_path') + '/admin/\n' +
|
||||
'Disallow: ' + nconf.get('relative_path') + '/reset/\n' +
|
||||
'Sitemap: ' + nconf.get('url') + '/sitemap.xml');
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user