you can use trailing form `return "" if type != "ttyS"`