Windows build fix.

This commit is contained in:
Stanislav Nikitin 2017-02-09 02:50:24 +05:00
parent 9273273b49
commit 5d3fb76f0f
1 changed files with 1 additions and 2 deletions

View File

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