зеркало из https://github.com/microsoft/statsd.git
Merge pull request #292 from etsy/mgmt_console_patch
cleanup whitespace and small tweaks
This commit is contained in:
Коммит
d16d744e64
|
@ -19,7 +19,7 @@ exports.delete_stats = function(stats_type, cmdline, stream) {
|
|||
deletable = existing_stats(stats_type, cmdline[index]);
|
||||
|
||||
//warn if no matches
|
||||
if (deletable.length == 0) {
|
||||
if (deletable.length === 0) {
|
||||
stream.write("metric " + cmdline[index] + " not found\n");
|
||||
}
|
||||
|
||||
|
@ -30,7 +30,7 @@ exports.delete_stats = function(stats_type, cmdline, stream) {
|
|||
}
|
||||
}
|
||||
stream.write("END\n\n");
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* existing_stats - find fully qualified matches for the requested stats bucket
|
||||
|
@ -43,7 +43,7 @@ exports.delete_stats = function(stats_type, cmdline, stream) {
|
|||
* no matches, an empty array is a valid response
|
||||
*/
|
||||
function existing_stats(stats_type, bucket){
|
||||
matches = []
|
||||
matches = [];
|
||||
|
||||
//typical case: one-off, fully qualified
|
||||
if (bucket in stats_type) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче