Skip to content

Commit 09f0ef2

Browse files
committed
Refactor JSDoc for HTTP request serializer and remove unused error code
1 parent 8f4c641 commit 09f0ef2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/internal/logger/serializers.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ function serializeErr(error) {
4242

4343
/**
4444
* Serializes HTTP request object
45-
* @param {{ method: string, url: string, headers: object, socket?: { remoteAddress?: string, remotePort?: string } }} req - HTTP request
45+
* @param {{ method: string, url: string, headers: object, socket?: {
46+
* remoteAddress?: string, remotePort?: string
47+
* } }} req - HTTP request
4648
* @returns {{ method: string, url: string, headers: object, remoteAddress?: string, remotePort?: string }}
4749
*/
4850
function req(req) {

lib/logger.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ const { isNativeError } = require('internal/util/types');
1414
const {
1515
codes: {
1616
ERR_INVALID_ARG_TYPE,
17-
ERR_INVALID_ARG_VALUE,
1817
ERR_METHOD_NOT_IMPLEMENTED,
1918
},
2019
} = require('internal/errors');

0 commit comments

Comments
 (0)