Skip to content

Commit 66c58f6

Browse files
committed
🔪 unreachable code in image trace defaults routine
1 parent 3b75921 commit 66c58f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/traces/image/defaults.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ module.exports = function supplyDefaults(traceIn, traceOut) {
4343
} else if(traceOut._hasSource) {
4444
traceOut.colormodel = 'rgba256';
4545
cm = constants.colormodel[traceOut.colormodel];
46-
traceOut.zmin = (cm.zminDflt || cm.min);
47-
traceOut.zmax = (cm.zmaxDflt || cm.max);
46+
traceOut.zmin = cm.zminDflt;
47+
traceOut.zmax = cm.zmaxDflt;
4848
}
4949

5050
coerce('text');

0 commit comments

Comments
 (0)