]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
krprint: nitpick from review
authorPetr Špaček <petr.spacek@nic.cz>
Mon, 2 Nov 2020 09:26:35 +0000 (10:26 +0100)
committerPetr Špaček <petr.spacek@nic.cz>
Mon, 2 Nov 2020 09:51:10 +0000 (10:51 +0100)
NEWS
daemon/lua/krprint.lua

diff --git a/NEWS b/NEWS
index ff2691e7f59477da38424e395b4e214afc0f629a..b6d2e4b1f00ad53d0083868fec2d2a4ed717cdee 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -10,6 +10,7 @@ Improvements
 - improve resiliency against UDP fragmentation attacks (disable PMTUD) (!1061)
 - ta_update: warn if there are differences between statically configured
   keys and upstream (#251, !1051)
+- human readable output in interactive mode was improved
 - doc: generate info page (!1079)
 
 Bugfixes
index e6088018622dd417e18d60ffb964ae28d7681f63..24380337caccee0fa3939aa5126d2ad3e33f28e9 100644 (file)
@@ -6,9 +6,10 @@ local base_class = {
 -- shared constructor: use as serializer_class:new()
 function base_class.new(class, on_unrepresentable)
        on_unrepresentable = on_unrepresentable or 'comment'
-       if not (on_unrepresentable == 'comment'
-               or on_unrepresentable == 'error') then
-               error('unsupported val2expr on_unrepresentable option ' .. tostring(on_unrepresentable))
+       if on_unrepresentable ~= 'comment'
+               and on_unrepresentable ~= 'error' then
+               error('unsupported val2expr on_unrepresentable option '
+                       .. tostring(on_unrepresentable))
        end
        local inst = {}
        inst.on_unrepresentable = on_unrepresentable