Oneline function

For better readability when a function only has one line inside we should
consider having the entire function in one line instead of 3 lines.