• Jacob Vosmaer's avatar
    Simplify Ci::BuildTraceChunk.persistable_store · 34febd35
    Jacob Vosmaer authored
    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.
    34febd35
redis_spec.rb 6.11 KB