Skip to content

Commit d527cd3

Browse files
for node12
1 parent af3451d commit d527cd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/blockTemplate.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ var BlockTemplate = module.exports = function BlockTemplate(jobId, rpcData, pool
127127
};
128128

129129
this.getOdoKey = function () {
130-
return this.rpcData?.odokey || null;
130+
return this.rpcData && this.rpcData.odokey ? this.rpcData.odokey : null;
131131
};
132132

133133
this.getJobParams = function () {

0 commit comments

Comments
 (0)