Removing redudant code.
Filelog with scopes needs the file name to be specified so the first `if` covers scopes too.