mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 23:06:16 -04:00
autofix no-var
This commit is contained in:
parent
31e5d785fe
commit
b33f73ac9a
61 changed files with 699 additions and 698 deletions
|
@ -23,7 +23,7 @@ const DateTime = {
|
|||
* @returns {string}
|
||||
*/
|
||||
runFromUnixTimestamp: function(input, args) {
|
||||
var units = args[0],
|
||||
let units = args[0],
|
||||
d;
|
||||
|
||||
input = parseFloat(input);
|
||||
|
@ -54,7 +54,7 @@ const DateTime = {
|
|||
* @returns {number}
|
||||
*/
|
||||
runToUnixTimestamp: function(input, args) {
|
||||
var units = args[0],
|
||||
let units = args[0],
|
||||
d = moment(input);
|
||||
|
||||
if (units === "Seconds (s)") {
|
||||
|
@ -129,7 +129,7 @@ const DateTime = {
|
|||
* @returns {html}
|
||||
*/
|
||||
runTranslateFormat: function(input, args) {
|
||||
var inputFormat = args[1],
|
||||
let inputFormat = args[1],
|
||||
inputTimezone = args[2],
|
||||
outputFormat = args[3],
|
||||
outputTimezone = args[4],
|
||||
|
@ -154,7 +154,7 @@ const DateTime = {
|
|||
* @returns {html}
|
||||
*/
|
||||
runParse: function(input, args) {
|
||||
var inputFormat = args[1],
|
||||
let inputFormat = args[1],
|
||||
inputTimezone = args[2],
|
||||
date,
|
||||
output = "";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue