Windows build fix.

This commit is contained in:
Stanislav Nikitin 2017-02-09 02:50:24 +05:00
parent 9273273b49
commit 5d3fb76f0f

View File

@ -23,7 +23,6 @@ package translator
import ( import (
// stdlib // stdlib
"errors"
"fmt" "fmt"
"os" "os"
) )
@ -37,7 +36,7 @@ func (t *Translator) detectLanguage() {
func (t *Translator) detectTranslationsDirectory() error { func (t *Translator) detectTranslationsDirectory() error {
// Translations MUST reside in directory neear binary! // Translations MUST reside in directory neear binary!
// ToDo: more checks. // ToDo: more checks.
t.translationsPath, _ := filepath.Abs(filepath.Dir(os.Args[0])) t.translationsPath, _ = filepath.Abs(filepath.Dir(os.Args[0]))
return nil return nil
} }