\documentclass{article}
\usepackage{algpseudocode}
\algrenewtext{EndIf}{}
\begin{document}
\begin{algorithmic}[1]
\If{1}
\State do this
\Else
\State do that
\EndIf
\end{algorithmic}
\end{document}
\documentclass{article}
\usepackage[noend]{algpseudocode}
\begin{document}
\begin{algorithmic}[1]
\If{1}
\State do this
\Else
\State do that
\EndIf
\end{algorithmic}
\end{document}