From ebbe6686b940ef90ebfb9571126f955bb6f6f7ca Mon Sep 17 00:00:00 2001 From: xiegegege <46314656+xiegegege@users.noreply.github.com> Date: Mon, 27 Dec 2021 15:07:20 +0800 Subject: [PATCH] remove version check for clang-format,test=document_fix (#5004) --- .travis/codestyle/clang_format.hook | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/.travis/codestyle/clang_format.hook b/.travis/codestyle/clang_format.hook index 1d9282168..1c4aa5b16 100644 --- a/.travis/codestyle/clang_format.hook +++ b/.travis/codestyle/clang_format.hook @@ -1,15 +1,4 @@ #!/bin/bash set -e -readonly VERSION="3.8" - -version=$(clang-format -version) - -if ! [[ $version == *"$VERSION"* ]]; then - echo "clang-format version check failed." - echo "a version contains '$VERSION' is needed, but get '$version'" - echo "you can install the right version, and make an soft-link to '\$PATH' env" - exit -1 -fi - clang-format $@ -- GitLab