there is some repeated code

there is some repeated code and i have removed it.
            if (graphicsDeviceManager == null)
            {
                throw new InvalidOperationException("No GraphicsDeviceManager found");
            }