Skip to content

hasOpcRequestId simplification #401

@AaronDabney

Description

@AaronDabney
function hasOpcRequestId(headers: Headers) {
  if (headers.has(OPC_REQUEST_ID_HEADER)) {
    return true;
  }
  return false;
}

can be simplified

function hasOpcRequestId(headers: Headers) {
    return headers.has(OPC_REQUEST_ID_HEADER)
}

PR to follow

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions