#!/bin/sh
if [ "$BRANCH_NAME" != '(no branch)' ]
then
    cargo fmt -- --check || exit 1
    cargo clippy -- -Dwarnings || exit 1
fi