Skip to content

Commit

Permalink
Fix lint in version header
Browse files Browse the repository at this point in the history
  • Loading branch information
steveluscher committed Oct 4, 2024
1 parent 64fe9b2 commit c7c14b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rpc/src/rpc-transport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function createDefaultRpcTransport<TClusterUrl extends ClusterUrl>(
...(config.headers ? normalizeHeaders(config.headers) : undefined),
...({
// Keep these headers lowercase so they will override any user-supplied headers above.
'solana-client': `js/${__VERSION__}` ?? 'UNKNOWN',
'solana-client': __VERSION__ ? `js/${__VERSION__}` : 'UNKNOWN',
} as { [overrideHeader: string]: string }),
},
}) as RpcTransportFromClusterUrl<TClusterUrl>,
Expand Down

0 comments on commit c7c14b0

Please sign in to comment.