Mercurial Hosting > luan
diff core/src/luan/LuanBit.java @ 440:93e6e67768d7
remove Luan.asString()
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 04 May 2015 11:34:38 -0600 |
parents | f28320fd671d |
children | bf5e62a9090c |
line wrap: on
line diff
--- a/core/src/luan/LuanBit.java Mon May 04 11:21:46 2015 -0600 +++ b/core/src/luan/LuanBit.java Mon May 04 11:34:38 2015 -0600 @@ -42,9 +42,8 @@ } public String checkString(Object obj) throws LuanException { - String s = Luan.asString(obj); - if( s != null ) - return s; + if( obj instanceof String ) + return (String)obj; if( el instanceof LuanSource.Element ) { LuanSource.Element se = (LuanSource.Element)el; throw exception( "attempt to use '"+se.text()+"' (a " + Luan.type(obj) + " value) as a string" );