Skip to content

Commit

Permalink
style: remove useless variable
Browse files Browse the repository at this point in the history
  • Loading branch information
msimerson committed Dec 13, 2023
1 parent a164aff commit 33b1b3d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .release
Submodule .release updated 4 files
+6 −2 CHANGELOG.md
+8 −0 README.md
+4 −1 finish.sh
+2 −2 submit.sh
30 changes: 14 additions & 16 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ let log = '/var/log/haraka.log';
let plugin;

exports.register = function () {
plugin = this;
plugin.get_logreader_ini();
plugin.load_karma_ini();
this.get_logreader_ini();
this.load_karma_ini();
}

exports.hook_init_http = function (next, server) {
Expand Down Expand Up @@ -166,11 +165,11 @@ exports.asHtml = function (uuid, matched, done) {
}

// exports.grepWithFs = function (file, regex, done) {
// var wantsRe = new RegExp(regex);
// var fsOpts = { flag: 'r', encoding: 'utf8' };
// const wantsRe = new RegExp(regex);
// const fsOpts = { flag: 'r', encoding: 'utf8' };
// require('fs').readFile(log, fsOpts, function (err, data) {
// if (err) throw (err);
// var res = '';
// let res = '';
// data.toString().split(/\n/).forEach(function (line) {
// if (wantsRe && !wantsRe.test(line)) return;
// res += line + '\n';
Expand Down Expand Up @@ -229,16 +228,15 @@ function sortByAward (a, b) {
}

function htmlHead () {
const str = '<html> \
<head> \
<meta charset="utf-8"> \
<link rel="stylesheet" href="/haraka/css/bootstrap.min.css"> \
<link rel="stylesheet" href="/haraka/css/bootstrap-theme.min.css"> \
<style> \
div { padding: 1em; } \
</style> \
</head>';
return str;
return '<html> \
<head> \
<meta charset="utf-8"> \
<link rel="stylesheet" href="/haraka/css/bootstrap.min.css"> \
<link rel="stylesheet" href="/haraka/css/bootstrap-theme.min.css"> \
<style> \
div { padding: 1em; } \
</style> \
</head>';
}

function htmlBody (uuid, awards, resolve) {
Expand Down

0 comments on commit 33b1b3d

Please sign in to comment.