fix comparison lint error

This commit is contained in:
Luiz Filipe Machado Barni
2018-08-31 10:57:54 -03:00
parent 7f5d20a162
commit 1f0ba3bb86
+3 -1
View File
@@ -670,7 +670,9 @@ function zoom() {
swiper.zoom.out();
swiper.zoom.disable();
swiper.zoom.enabled === false;
if (swiper.zoom.enabled) throw new Error('Zoom should be disabled!');
swiper.zoom.enable();
swiper.zoom.in();
}