Fix formatting.

このコミットが含まれているのは:
Cory Slep 2019-02-28 22:43:35 +01:00
コミット 6e4cff677a
1個のファイルの変更1行の追加1行の削除

ファイルの表示

@ -297,7 +297,7 @@ func (c *CommandLineFlags) Validate() error {
if strings.Contains(c.destination, "..") {
return fmt.Errorf("destination with '..' in path is not supported")
}
if !strings.HasPrefix(c.destination, "." + string(os.PathSeparator)) && c.destination != "." {
if !strings.HasPrefix(c.destination, "."+string(os.PathSeparator)) && c.destination != "." {
return fmt.Errorf("destination directory must be a relative path")
}
return nil