Simplify Ci::BuildTraceChunk.persistable_store
Before this change, Ci::BuildTraceChunk.persistable_store was implemented by scanning an array with 3 values: [false, true, BuildTraceChunks::Fog.new.available?]. What could be a single if-else ("if Fog is available, then X, else, Y") was presented as a loop. This commit replaces the loop with a single if-else.
Showing
Please register or sign in to comment