reset go.mod after go fmt
diff --git a/.travis.yml b/.travis.yml
index 04d2b4d..6d72de7 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -17,7 +17,7 @@
   - mvn test -f test_hessian/pom.xml
   - mvn clean package -f test_dubbo/pom.xml
   - git reset --hard
-  - go fmt && [[ -z `git status -s` ]]
+  - go fmt && git checkout -- go.mod && [[ -z `git status -s` ]]
   - sh before_validate_license.sh
   - chmod u+x /tmp/tools/license/license-header-checker
   - /tmp/tools/license/license-header-checker -v -a -r -i vendor  /tmp/tools/license/license.txt . go  && [[ -z `git status -s` ]]