Skip to content
This repository was archived by the owner on Nov 17, 2020. It is now read-only.

Commit 02bccbc

Browse files
authored
Remove type check
1 parent c11ce36 commit 02bccbc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

priv/www/js/formatters.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -562,8 +562,8 @@ function fmt_object_state(obj) {
562562
else if (obj.state == 'terminated') {
563563
colour = 'yellow';
564564
var terminated_by = "";
565-
if(typeof(obj.terminated_by) === "string"){
566-
terminated_by = " by \"" + obj.terminated_by + "\""
565+
if (obj.terminated_by) {
566+
terminated_by = " by \"" + String(obj.terminated_by) + "\"";
567567
}
568568
explanation = 'The queue is being deleted' + terminated_by + ".";
569569
}

0 commit comments

Comments
 (0)