Commit 9a5cbc8
refactor: remove unreachable nil checks for ExportToCache
The determineDockerExportMode() function always sets cfg.ExportToCache
to a non-nil value before these conditions are evaluated, making the
nil checks unreachable dead code.
Simplified:
- Line 1958: (cfg.ExportToCache == nil || !*cfg.ExportToCache) → !*cfg.ExportToCache
- Line 2015: cfg.ExportToCache != nil && *cfg.ExportToCache → *cfg.ExportToCache
Co-authored-by: Ona <no-reply@ona.com>1 parent 3fcdf06 commit 9a5cbc8
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1955 | 1955 | | |
1956 | 1956 | | |
1957 | 1957 | | |
1958 | | - | |
| 1958 | + | |
1959 | 1959 | | |
1960 | 1960 | | |
1961 | 1961 | | |
| |||
2012 | 2012 | | |
2013 | 2013 | | |
2014 | 2014 | | |
2015 | | - | |
| 2015 | + | |
2016 | 2016 | | |
2017 | 2017 | | |
2018 | 2018 | | |
| |||
0 commit comments