Elastic: Small code cleanup

Authored by machniak on Wed, Nov 21, 12:49 PM.