mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed the warnings/errors reported by eslint for all the static
javascripts.
This commit is contained in:
@@ -2,10 +2,10 @@ define([],
|
||||
function () {
|
||||
var sizePrettify = function (rawSize) {
|
||||
var size = Math.abs(rawSize),
|
||||
limit = 10 * 1024,
|
||||
limit2 = limit - 1,
|
||||
cnt = 0,
|
||||
sizeUnits = ['bytes', 'kB', 'MB', 'GB', 'TB', 'PB'];
|
||||
limit = 10 * 1024,
|
||||
limit2 = limit - 1,
|
||||
cnt = 0,
|
||||
sizeUnits = ['bytes', 'kB', 'MB', 'GB', 'TB', 'PB'];
|
||||
|
||||
if (size < limit)
|
||||
return size + ' ' + sizeUnits[cnt]; // return in bytes format
|
||||
@@ -20,5 +20,5 @@ define([],
|
||||
}
|
||||
};
|
||||
|
||||
return sizePrettify;
|
||||
});
|
||||
return sizePrettify;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user