Important, or just Personal Preference?
I have an extension method that returns stuff (strings, lists, bools, etc), and I usually write them like this:

    public string Return(string firstName)
    {
       /* get first name
       */
       string fname = result.FirstName;
      
       return fname;
    }

You'll notice that I declared a new variable "fname", and returned it.

But lately I've been doing this:

    public string Return(string firstName)
    {
       /* code to get first name
       */
       firstName = result.FirstName;
       return firstName;
    }

Which turns out to work the same way.

And while writing this question, I remembered that I can just do this:

    public string Return(string firstName)
    {
       /* code to get first name
       */
       return result.FirstName;
    }


Does it really matter which way you write this, or does it just come down to personal preference?
Important, or just Personal Preference?
===

I have an extension method that returns stuff (strings, lists, bools, etc), and I usually write them like this:

    public string Return(string firstName)
    {
       /* get first name
       */
       string fname = result.FirstName;
      
       return fname;
    }

You'll notice that I declared a new variable "fname", and returned it.

But lately I've been doing this:

    public string Return(string firstName)
    {
       /* code to get first name
       */
       firstName = result.FirstName;
       return firstName;
    }

Which turns out to work the same way.

And while writing this question, I remembered that I can just do this:

    public string Return(string firstName)
    {
       /* code to get first name
       */
       return result.FirstName;
    }


Does it really matter which way you write this, or does it just come down to personal preference?