File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -296,17 +296,17 @@ end
296
296
local function shdict_get (zone , key , flags )
297
297
zone = check_zone (zone )
298
298
299
+ if key == nil then
300
+ return nil , " nil key"
301
+ end
302
+
299
303
if flags ~= nil then
300
304
user_flags_neq [0 ] = 1
301
305
user_flags [0 ] = flags
302
306
else
303
307
user_flags_neq [0 ] = 0
304
308
end
305
309
306
- if key == nil then
307
- return nil , " nil key"
308
- end
309
-
310
310
if type (key ) ~= " string" then
311
311
key = tostring (key )
312
312
end
@@ -382,17 +382,17 @@ end
382
382
local function shdict_get_stale (zone , key , flags )
383
383
zone = check_zone (zone )
384
384
385
+ if key == nil then
386
+ return nil , " nil key"
387
+ end
388
+
385
389
if flags ~= nil then
386
390
user_flags_neq [0 ] = 1
387
391
user_flags [0 ] = flags
388
392
else
389
393
user_flags_neq [0 ] = 0
390
394
end
391
395
392
- if key == nil then
393
- return nil , " nil key"
394
- end
395
-
396
396
if type (key ) ~= " string" then
397
397
key = tostring (key )
398
398
end
You can’t perform that action at this time.
0 commit comments