How do I get component with one variable

Hi I’m getting component with this code

qualityslider = GameObject.Find("Canvas/Status_screen/Service_slider");
        qualityslider1 = quality1.gameObject.GetComponent<Slider>();

qualityslider is gameobject type and qualityslider1 is slider type but this is very stupid I’m searching on Google but I’m not found anything is there any easy way like this

qualityslider = GameObject.Find("Canvas/Status_screen/Service_slider").gameobject.GetComponent<Slider>();

or something like that I would be thankful

Does GameObject.Find("Canvas/Status_screen/Service_slider").GetComponent<Slider>(); work?