"Variable not used"- Problem for open()...do...io function

I want to read some variable values from a .tsv file like this:

# ---------------------------------------------
function readfile(svname)
    algrtm="unknown"
    rbc="unknown"
    
    # read used algorithm and right boundary condition from file
    open(svname) do io                   # = open...try...finally close
         algrtm = readuntil(io,'-')      
         readline(io)                    # remove decoration
         rbc = readuntil(io,'-')         
    end
    
    return algrtm, rbc
    end       #function
    # ---------------------------------------------
    
    
    svname_nn = "Euler_Neumann2.tsv"     
    algrtm_nn, rbc_nn = readfile(svname_nn)

The function works. But I get a problem “Variable has been assigned but not used”. I don’t get this warning for
algrtm=“unknown”
rbc=“unknown”
but for
algrtm = readuntil(io,’-’)
rbc = readuntil(io,’-’)
although it’s the same variable, isn’t it?

What is the right way to this?
I am grateful for any help

That’s an error with the linter, so don’t worry about it :wink:

Ref

Thank you for this information